#include<LiquidCrystal.h>
const int pin_rs = 12;
const int pin_e = 11;
const int pin_d4 = 7;
const int pin_d5 = 6;
const int pin_d6 = 5;
const int pin_d7 = 4;
const int pin_a0 = A0
byte huruf_a[] =
{
B01110, B01010, B01010, B01010, B11111, B11001, B11001, B11001
};
byte huruf_b[] =
{
B01110, B01010, B01010, B01010, B11111, B11001, B11001, B11111
};
byte huruf_d[] =
{
B01110, B01011, B01001, B01001, B11001, B11001, B11001, B11111
};
byte huruf_u[] =
{
B10001, B10001, B10001, B10001, B11001, B11001, B11001, b11110
};
byte huruf_l[] =
{
B01000, B01000, B01000, B01000, B11000, B11000, B11000, B11111
};
LiquidCrystal lcd(pin_rs, pin_e, pin_d4, pin_d5, pin_d6, pin_d7);
void setup() {
lcd.begin(16, 2);
lcd.clear();
lcd.print("SEMANGAT SELALU!");
lcd.setCursor(0,1);
lcd.print("DI SETIAP WAKTU!");
delay(1500);
}
void loop() {
for(int j = 1; j <= 16; j++){
lcd.scrollDisplayLeft();
delay(100);
}
for(int j = 1; j <= 16; j++){
lcd.scrollDisplayRight();
delay(100);
}
delay(2000);
}