#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 20, 4); // Change the I2C address (0x3F) to match your LCD
String textToScroll = "Arvind patil india have a nice day";
int scrollDelay = 500; // Adjust the scroll speed as needed
void setup() {
lcd.init(); // Initialize the LCD
lcd.backlight(); // Turn on the backlight
}
void loop() {
for (int i = 0; i <= textToScroll.length(); i++) {
lcd.clear();
lcd.setCursor(0, 0);
lcd.print(textToScroll.substring(i));
delay(scrollDelay);
}
}