Page 1 of 1

trying to get an ESP8266 with an integrated 9,96" OLED display to work with the SSD1306 library

Posted: Thu Apr 04, 2024 2:14 pm
by rin67630
Hi
I am trying to get an ESP8266 with an integrated 9,96" OLED display to work with the SSD1306 library:

Code: Select all

#define SDA 14
#define SCL 12
#define RST 16
#include <SSD1306.h>
SSD1306 display(0x3c);
does not work
.

an example with the U8G2 library works:

Code: Select all

U8G2_SSD1306_128X64_NONAME_F_SW_I2C 
u8g2(U8G2_R0,/*clock=*/12,/*data=*/14,U8X8_PIN_NONE) ;
void setup(void) { 
  u8g2.begin();
Has anyone got a clue how to bring it to work with the SSD1306 library?

All my code is written for the SSD1306 library, moving to U8G2 is not a option.

It appears clear that SDA is on GPIO14 and SCL is on GPIO12.
But how to find out, which address they have used?
Maybe a it has a non-standard I2C address?
I could not get the address to be detected by an I2C scanner either.

Thank you
Laszlo

Re: trying to get an ESP8266 with an integrated 9,96" OLED display to work with the SSD1306 library

Posted: Fri Apr 05, 2024 12:37 pm
by eriksl
The default I2C address is 0x3c.

I can't help you with the ssd1306 library, though, I made the support myself.

Re: trying to get an ESP8266 with an integrated 9,96" OLED display to work with the SSD1306 library

Posted: Sat Apr 06, 2024 7:19 am
by rin67630
Thank you.
I just don't understand why that display refuses to work with the usual SSD1306 library, and why it only works with the U8G2 library.

Re: trying to get an ESP8266 with an integrated 9,96" OLED display to work with the SSD1306 library

Posted: Sat Apr 06, 2024 8:04 am
by eriksl
No idea. Maybe the crap I2C implementation on the ESP8266 by Espressif. Avoid it if you can.