My LCD screen with backpack does not show text

Thread Starter

Liubey135

Joined May 19, 2022
1
I have the following code for my arduino UNO connectd to the LCD screen:

#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.setCursor(1, 2);
lcd.print("Hello");

}
void loop()
{
}

The connections of the backpck with the arduino are:

VCC-5V
GND-GND
SDA-A4
SCL-A5

There is no error message but the LCD just goes black after 1 sec and back to lighting up after another sec. No text no nothing. What is wrong?
 

BobaMosfet

Joined Jul 1, 2009
2,110
Can you attach a video? Have you adjusted the contrast? Can you toggle the backlight on and off to at least indicate you're communicating with the device at some level?
 

KeithWalker

Joined Jul 10, 2017
3,063
The address for your 16 x 2 display is probably "0x3F"
There have been a number of major changes to the LiquidCrystalI2C library. I recommend that you make sure you delete your existing one from the "Program Files\Ardino\Libraries" and download the latest version. Then try the examples included in the new library.
 
Top