#include <LiquidCrystal.h>
int rs = 12, e = 11, d4 = 4, d5 = 5, d6 = 6, d7 = 7;
LiquidCrystal lcd(rs, e, d4, d5, d6, d7);
int x;
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
}
void loop() {
//put your main code here, to run repeatedly:
lcd.setCursor(16, 0);
lcd.print("Kelompok 2");
for(x = 0; x < 26; x++){
lcd.scrollDisplayLeft();
delay(250);
}
lcd.clear();
lcd.setCursor(25, 1);
lcd.print("Kelompok 2");
for(x = 32; x > 0; x--) {
lcd.scrollDisplayRight();
delay(250);
}
lcd.clear();
}