#include <LiquidCrystal.h>
const int rs=12,e=11,d4=5,d5=4,d6=3,d7=2;
LiquidCrystal lcd(rs,e,d4,d5,d6,d7);
void setup() {
lcd.begin(16,2);
lcd.print("Running Text");
// put your setup code here, to run once:
}
void loop() {
lcd.setCursor(0,1);
lcd.print("Running Text:");
String pesan="hi,Rachel";
for (int i = 0; 1 < pesan.length() + 16; i++){
lcd.clear();
lcd.print("hai cantik");
delay(500);
lcd.clear();
lcd.print("semangat ya");
delay(500);
lcd.clear();
lcd.print("puasanya ");
delay(400);
lcd.clear();
lcd.print("walau ku");
delay(300);
lcd.clear();
lcd.print("goda goda");
delay(300);
lcd.clear();
lcd.print("makanan hehe");
delay(400);
}
// put your main code here, to run repeatedly:
}