#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27, 20, 4);
String message ="khushman. "; // Message to scroll, padded with spaces to clear screen
void setup() {
lcd.init(); // Initialize the LCD
lcd.backlight(); // Turn on the backlight
}
void loop() {
for (int i = 0; i < message.length(); i++) {
lcd.clear(); // Clear the display
lcd.setCursor(0, 0); // Set the cursor to the beginning of the first line
// Display a portion of the message starting at character i
lcd.print(message.substring(i) + message.substring(0, i));
delay(300); // Wait for a bit to see the scrolling
}
}