#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
String pesan = "halo";
int panjangteks = pesan.length();
void setup() {
// put your setup code here, to run once:
lcd.begin(16, 2);
lcd.backlight();
lcd.setCursor(16,0);
lcd.print(pesan);
}
void loop() {
// put your main code here, to run repeatedly
for(int x = 0; x < panjangteks + 16; x++) {
lcd.scrollDisplayLeft();
delay(200);
}
lcd.clear();
lcd.setCursor(16,0);
lcd.print("lolo");
}