A row of solid boxes usually means power is fine but the contrast is wrong or the display is not initialised. Turn the small contrast trimmer on the I2C backpack.
What the message means
The display has a contrast voltage set by a trimmer. The backpack talks over I2C at an address that depends on its chip, commonly 0x27 or 0x3F.
Fix it in this order
- Turn the blue contrast trimmer slowly until the text appears.
- Run an I2C scanner to find the address, and use it in the constructor.
- Give it 5 V and ground. Many modules need 5 V, not 3.3 V.
- Check SDA and SCL wires, and the jumper that enables the backlight.
- Call lcd.init() and lcd.backlight() in setup, and use the library that matches your backpack.
- On a 3.3 V board such as the ESP32 use a level shifter or a module made for 3.3 V logic if the display stays blank.
Why it happens
A character LCD needs a contrast voltage to make its pixels visible. On an I2C backpack the contrast is set by a small trimmer, so a display can have power and still look blank. Solid black boxes mean the controller is alive and writing characters, but the contrast is not set correctly to show the pixels. Turning the trimmer slowly across its range usually brings text into view.
The I2C backpack converts serial commands into the parallel signals the HD44780 controller expects. The bus address depends on the chip on the backpack, commonly 0x27 or 0x3F, so a sketch with the wrong address can talk to nothing. The controller also needs initialisation after power-up. A library call such as init and backlight sends those commands, and skipping them leaves the display in a state with no visible text.
If you see this, do this
| You see | Do this |
|---|---|
| Solid boxes in one row | Contrast or init. |
| Backlight on, no text | Wrong address or contrast. |
Confirm the fix
- Run an I2C scanner and note the address it prints; then set that address in the LiquidCrystal_I2C constructor and upload again.
- Print a short message with lcd.print after init and backlight, then turn the contrast trimmer slowly until the characters are sharp.
- Confirm 5 V reaches VCC and ground reaches GND, then check the backlight jumper; a lit backlight with no text points to contrast.
Common mistake: Many builders assume a blank LCD is dead, when the display is usually receiving power and needs only a contrast adjustment or the correct I2C address.
Related
I2C device not found, SSD1306 OLED blank.
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.