#include <LiquidCrystal_I2C.h>
// Set the LCD address (usually 0x27 or 0x3F)
// You may need to adjust this based on your specific LCD module
LiquidCrystal_I2C lcd(0x27, 16, 2); // 16x2 display
void setup() {
// Initialize the LCD
lcd.init();
// Turn on the backlight (if available on your module)
lcd.backlight();
// Print a welcome message on the LCD
lcd.setCursor(0, 0); // Set cursor to the first row, first column
lcd.print("Hello From");
lcd.setCursor(0, 1); // Set cursor to the second row, first column
lcd.print("Robotry-BD");
delay(2000);
}
void loop()
{
// Your loop code can go here if you want to update the display dynamically
lcd.setCursor(0, 0); // Set cursor to the first row, first column
lcd.print("This is 1602 LCD");
lcd.setCursor(0, 1); // Set cursor to the second row, first column
lcd.print("I2C Display");
delay(1000);
}