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
Hi
I am trying to get an ESP8266 with an integrated 9,96" OLED display to work with the SSD1306 library:
.
an example with the U8G2 library works:
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
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();
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