arduino demo with i2c lcd 16x2 Display
LCD Board: Uno Board:
SDA- A4/SDA
SCL- A5/SCL
GND GND
VCC 5v
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
or
LiquidCrystal_I2C lcd(0x3F,16,2); // set the LCD address to 0x3F for a 16 chars and 2 line display
lcd.init(); //for lcd intialization
lcd.backlight(); // for lcd backlight
lcd.setCursor(row,col); // setting row(max 2) and col(max 16) for text
lcd.print("Text"); // for printing text in lcd
lcd.clear(); // for clean text of lcd