Oled display not working with adafruit library

Hello. I have recently bought a 1.3 inch (128 x 64) I2C OLED display. While I tried to use the display with the adafruit GFX and adafruit SSD1306 library it didnt work properly. The display turned white with noise and no text or graphics were shown. I initially thought the display was broken, but that was not true. Following a youtube tutorial, when I tried using the display with the U8glib library by oliver , it worked perfectly . Can anyone tell me why this happened? Why the display work with U8glib library but not with adafruit library?
note: my connection and wiring were fine both the time.

This specific OLED may not be compatible with the Adafruit library. You can ask this question to the adafruit forum. Let's see what they say.

update: I tried using Adafruit SH1106 instead of SSD1306, and it worked perfectly. So I guess my OLED display uses the SS1106 driver.

1 Like

It's possible that the OLED display has a different I2C address than what the Adafruit library expects. The Adafruit SSD1306 library assumes a default I2C address for SSD1306-based displays, but your specific OLED display may have a different address. The U8glib library might have better automatic detection or flexible addressing options, allowing it to work correctly with the display.

Good to know that it worked. The supplier of your display should have made this clear in their documentations.

1 Like

All the 1.3" OLEDs I have come across use the SH1106.

You do see some of the 1.3" OLEDs advertised as SSD1306.

I know it´s a bit late but I like to add something here:
I am using lots of these small 1.3" or 0.96" Oled displays purchased from Aliexpress and I always notice a similar behaviour. Looks like depending on the specific purchase order the SSD1306 or the SH1106 library works all with 0x3C I2C-address. I just try with the examples whichone works before implementing in my project.

Same library.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.