#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, 16, 2);
String messageToScroll1 = "Halo Selamat Datang di Arduino!";
String messageToScroll2 = "Aram The Great Conquerer";
void setup() {
lcd.init(); // initialize the lcd
lcd.backlight();
// Print the message on the first line
lcd.setCursor(0, 0);
lcd.print(messageToScroll1);
lcd.setCursor(0,1);
lcd.print(messageToScroll2);
}
void loop() {
lcd.scrollDisplayLeft();
// Wait a bit to control the scrolling speed
delay(300);
}