LCD Configuration With Arduino

Tech4Progress

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

Circuit Diagram with Connections

Code

#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd_1(0x27, 16, 2);

void setup()

{

lcd_1.init(); // Initialize the LCD

lcd_1.backlight(); // Turn on the backlight

lcd_1.clear(); // Clear the screen

}

void loop()

{

lcd_1.setCursor(0, 0); // Set cursor to the first row, first column

lcd_1.print("Tech4Progress");

lcd_1.setCursor(0, 1); // Set cursor to the second row, first column

lcd_1.print("Subscribe");

delay(1000); // 1-second delay for visibility

}