Did you modify the Adafruit_SSD1306.h file to match the resolution of your display? This might happen if the library thinks your display size is different.

SSD1306 Displays

The driver is used in multiple displays (128x64, 128x32, etc.).
Select the appropriate display below to create an appropriately
sized framebuffer, etc.

SSD1306_128_64 128x64 pixel display

SSD1306_128_32 128x32 pixel display


#define SSD1306_128_64
// #define SSD1306_128_32
// #define SSD1306_96_16