#include <LiquidCrystal_I2C.h>
// Define constants for the LCD settings
#define LCD_ADDR 0x27
#define LCD_COLUMNS 16
#define LCD_ROWS 2
// Initialize the LCD on I2C address 0x27 for a 16x2 display
LiquidCrystal_I2C lcd(LCD_ADDR, LCD_COLUMNS, LCD_ROWS);
void setup() {
// Start the LCD
lcd.begin(LCD_COLUMNS, LCD_ROWS);
lcd.init(); // Initialize the LCD
lcd.backlight(); // Turn on the backlight
// Print "Hello" at the top-left corner of the LCD
lcd.setCursor(0, 0);
lcd.print("Hello");
// Print "LCD is Working" on the first line
lcd.setCursor(0, 1);
lcd.print("LCD is Working");
// Optionally clear the second line after a delay and print your name
delay(2000); // Wait for 2 seconds before clearing the second line
lcd.setCursor(0, 1);
lcd.print(" "); // Clear the second line by printing spaces
lcd.setCursor(0, 1);
lcd.print("Jibin N"); // Print your name on the second line
}
void loop() {
// This function intentionally left blank.
}