LCD shows a row of solid boxes

  • 16x2 LCD

Why it happens

  • The LCD never received its start-up commands: wrong pins, wrong address or a loose wire.

How to fix it

  1. I2C LCD: fix the address and SDA/SCL.
  2. LCD without I2C: check RS, E, D4, D5, D6, D7 match LiquidCrystal lcd(RS, E, D4, D5, D6, D7) in that order.
  3. Connect RW to GND.
  4. Press the backpack's pins: a bad solder joint does this too.

It worked if: Text replaces the boxes after a reset.

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.