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

rin67630
Posts: 138
Joined: Sun Mar 11, 2018 5:13 pm

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

Postby rin67630 » Thu Apr 04, 2024 2:14 pm

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

eriksl
Posts: 111
Joined: Thu Dec 14, 2023 3:23 pm
Location: Netherlands

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

Postby eriksl » Fri Apr 05, 2024 12:37 pm

The default I2C address is 0x3c.

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

rin67630
Posts: 138
Joined: Sun Mar 11, 2018 5:13 pm

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

Postby rin67630 » Sat Apr 06, 2024 7:19 am

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.

eriksl
Posts: 111
Joined: Thu Dec 14, 2023 3:23 pm
Location: Netherlands

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

Postby eriksl » Sat Apr 06, 2024 8:04 am

No idea. Maybe the crap I2C implementation on the ESP8266 by Espressif. Avoid it if you can.

Who is online

Users browsing this forum: No registered users and 73 guests