#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Set the LCD address (You can find this using I2C scanner or check your LCD datasheet)
#define I2C_ADDR 0x27
// Set the LCD dimensions
#define LCD_COLUMNS 16
#define LCD_ROWS 2
// Create an instance of the LiquidCrystal_I2C library
LiquidCrystal_I2C lcd(I2C_ADDR, LCD_COLUMNS, LCD_ROWS);
void setup() {
// Initialize the LCD
lcd.begin(LCD_COLUMNS, LCD_ROWS);
// Set up the LCD backlight (optional, depends on your LCD)
lcd.setBacklight(LOW); // HIGH to turn on, LOW to turn off
// Print your name on the LCD
lcd.print("Talha Jamal");
}
void loop() {
// Your main code goes here
// Note: The loop function runs continuously after setup
}