#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
// put your setup code here, to run once:
lcd.begin(8,2);
lcd.print("Teerapat");
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor (0,1);
lcd.print("Sangrit");
scrollTextDisplay();
}
void scrollTextDisplay(){
for (int couter = 0; couter <13; couter++) {
lcd.scrollDisplayLeft();
delay(200);
}
for (int couter = 0; couter <29; couter++) {
lcd.scrollDisplayRight();
delay(200);
}
for (int couter = 0; couter <16; couter++) {
lcd.scrollDisplayLeft();
delay(200);
}
delay(5000);
}