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

  1. Read the pin names printed on your module before wiring.
  2. Run an I2C scanner.
  3. Call display.setTextColor(SSD1306_WHITE); and end with display.display();.
  4. If the picture is shifted or speckled, try an SH1106 library.

It worked if: The library's example animation plays.

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.