PERCOBAAN MENAMPILKAN TEXT BERJALAN PADA LCD
Nama : Ahmad Fauzi Fadli (163600029)
Moh. Thoyib (163600044)
Moh. Thoyib (163600044)
PROGRAM :
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
lcd.begin(16, 2);
lcd.setCursor(0, 0);
lcd.print(" KANGEN KAMU ? ");
lcd.setCursor(0, 1);
lcd.print(" SAYANG ");
delay (500);
}
void loop() {
for (int x = 0;x<13;x++){
lcd.scrollDisplayLeft();
delay(500);
}
for (int x = 0;x <29;x++){
lcd.scrollDisplayRight();
delay(500);
}
for (int x = 0;x <16;x++){
lcd.scrollDisplayRight();
delay(500);
}
delay (400);
}
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
lcd.begin(16, 2);
lcd.setCursor(0, 0);
lcd.print(" KANGEN KAMU ? ");
lcd.setCursor(0, 1);
lcd.print(" SAYANG ");
delay (500);
}
void loop() {
for (int x = 0;x<13;x++){
lcd.scrollDisplayLeft();
delay(500);
}
for (int x = 0;x <29;x++){
lcd.scrollDisplayRight();
delay(500);
}
for (int x = 0;x <16;x++){
lcd.scrollDisplayRight();
delay(500);
}
delay (400);
}