SSD1306 says Height incorrect

In Adafruit_SSD1306.h

  1. uncomment #define SSD1306_128_64
  2. comment #define SSD1306_128_32
  3. comment #define SSD1306_96_16

In the example ssd1306_128x64_i2c

  1. add #define SSD1306_LCDHEIGHT 64

on top of

#if (SSD1306_LCDHEIGHT != 64)
#error("Height incorrect, please fix Adafruit_SSD1306.h!");
#endif

Suerte.

1 Like