OLED stays completely dark
- OLED SSD1306
Why it happens
display.display()is missing.- The address is wrong (0x3C on most, 0x3D on some).
- SDA and SCL are swapped, or VCC and GND are in a different order on your module.
- The screen has an SH1106 chip, not an SSD1306.
How to fix it
- Read the pin names printed on your module before wiring.
- Run an I2C scanner.
- Call
display.setTextColor(SSD1306_WHITE);and end withdisplay.display();. - If the picture is shifted or speckled, try an SH1106 library.
It worked if: The library's example animation plays.
Related errors
From how the part works. Explained from how the part works; not tried on a real circuit for this page.
Didn't help? Search another error or ask us.

