SSD1306 library for Wemos D1 mini (64x48)

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Post Reply
User avatar
sekramer10
 
Posts: 179
Joined: Wed Oct 28, 2015 12:42 am

SSD1306 library for Wemos D1 mini (64x48)

Post by sekramer10 »

I'm getting an error when compiling the example "ssd1306_64x48_i2c.ino" from the "Adafruit_SSD1306_Wemos_Mini_OLED" library, v1.1.2.

The error is:

Code: Select all

"Height incorrect, please fix Adafruit_SSD1306.h!"
This comes from lines 55-57 in the sketch which are:

Code: Select all

#if (SSD1306_LCDHEIGHT != 48)
#error("Height incorrect, please fix Adafruit_SSD1306.h!");
#endif
I'm not sure how to modify the sketch or library files so that it works correctly. I tried the declaration "Adafruit_SSD1306 display(64,48)" it compiles but the output is wrong. I have the 64x48 wemos d1 mini shield on a esp8266 module.

User avatar
adafruit_support_carter
 
Posts: 24423
Joined: Tue Nov 29, 2016 2:45 pm

Re: SSD1306 library for Wemos D1 mini (64x48)

Post by adafruit_support_carter »

Is that this library?
https://github.com/stblassitude/Adafrui ... Wemos_OLED

If so, that's not an Adafruit library. It's someone's fork of an Adafruit library.

The Adafruit SSD1306 Arduino library is here:
https://github.com/adafruit/Adafruit_SSD1306

User avatar
sekramer10
 
Posts: 179
Joined: Wed Oct 28, 2015 12:42 am

Re: SSD1306 library for Wemos D1 mini (64x48)

Post by sekramer10 »

Yes I have found out that your library works better. Thanks.

Post Reply
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”