A blank screen is usually a wrong I2C address, a wiring fault or a missing display() call. Check these in order.
What the message means
The SSD1306 draws into a buffer in memory. Nothing appears until you send the buffer to the screen with display(). If begin() fails, the library cannot find the screen on the I2C bus.
Fix it in this order
- Run an I2C scanner. Most modules answer at 0x3C; some at 0x3D. Use the address you find.
- Check SDA and SCL wiring, power and ground. On an ESP32 make sure you use pins that are set for I2C in the sketch.
- Check the sketch sets the right size, 128 by 64 or 128 by 32, to match the module.
- Check the return value of display.begin(). If it fails, stop and print a message.
- Call display.clearDisplay() before drawing and display.display() after.
- Set a text colour. White text on a white background, or no colour set, shows nothing.
Why it happens
The SSD1306 controller keeps a frame buffer in its own memory. Drawing functions in most libraries change a copy of that buffer in your microcontroller’s RAM, and the screen shows nothing until display() sends the buffer over I2C. A blank result often means the drawing happened but the transfer never ran, or the address was wrong so the transfer went nowhere. From the screen alone, the two faults look the same.
I2C devices answer to a fixed address, and most SSD1306 modules respond at 0x3C, with some at 0x3D. The microcontroller must address that exact value, or it talks to an empty bus. Before any drawing, begin() must succeed, and it fails if the screen is absent. Checking the return value and printing it over Serial turns a silent blank into a clear message you can act on.
If you see this, do this
| You see | Do this |
|---|---|
| Scanner finds nothing | Wiring, power or a dead module. See the I2C page. |
| Scanner finds 0x3C but the screen is blank | Wrong address in code or missing display(). |
Confirm the fix
- Upload an I2C scanner sketch and confirm an address such as 0x3C appears in the Serial Monitor; no entries means check wiring and power.
- Print the return value of display.begin() over Serial; a false result means the screen did not respond at the address you used.
- Draw a filled rectangle, then call display(); if the rectangle appears, the buffer and transfer both work, so look at the text settings next.
Common mistake: Many readers assume that drawing commands show up on the screen at once, but the SSD1306 only updates when the buffer is sent with display().
Related
I2C device not found, ESP32 pinout for robotics.
Last reviewed: November 2026. These are the usual causes and the order that finds them fastest. Test on your own board; clones and cables differ.