#include<LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
String txtsc,txtnosc;
void setup(){
txtnosc="Text No Scroll";
txtsc="Text Scrolling "
lcd.begin(16, 2);
lcd.clear();
lcd.setCursor(0,0);
lcd.print(txtnosc);
}
void loop(){
lcd.setCursor(0,1);
txtsc=ScrollTxt(txtsc);
lcd.print(txtsc);
}
String ScrollTxt(String txt){
return txt.substring(1,txt.length()) + txt.substring(0,1);
}
i hove this help ![]()
"Semoga membantu"