I2C LCD lights up but shows nothing

  • 16x2 LCD with I2C

Why it happens

  • The address in the code isn't your LCD's.
  • The contrast screw is turned too far.
  • SDA and SCL are swapped.
  • lcd.init() or lcd.backlight() is missing.

How to fix it

  1. Turn the small blue screw on the back slowly with a screwdriver until letters or faint boxes show.
  2. Check wires: on an Uno SDA is A4 and SCL is A5; on an ESP32 usually SDA 21 and SCL 22.
  3. Run an I2C scanner sketch (our ESP32 LCD lesson has one) and put the address it prints into the code.
  4. Try 0x3F if 0x27 fails.

It worked if: The text shows clearly, and the scanner prints one address.

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.