0.96 inch, 1.3 inch, 0.91 inch OLED display Arduino ESP32 guide white screen proble I2C address scanner code
1. Universal Example code works in all display with U8G2 library #include <Arduino.h> #include <U8g2lib.h> #include <Wire.h> // For 0.91" OLED (SSD1306 128x32): //U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // For 0.96" OLED (SSD1306 128x64): //U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // For 1.3" OLED (SH1106 128x64): U8G2_SH1106_128X64_NONAME_F_HW_I2C u8g2 ( U8G2_R0, /* reset=*/ U8X8_PIN_NONE ) ; // -------------------------------------------------------------------------------- void setup () { u8g2 . begin () ; } void loop () { u8g2 . clearBuffer () ; // clear the internal memory u8g2 . setFont ( u8g2_font_ncenB08_tr ) ; // choose a suitable font u8g2 . drawStr ( 0 , 10 , "Hello World!" ) ; // write something to the internal memory u8g2 . sendBuffer () ; // transfer internal memor...