#include <LiquidCrystal.h>
const int PIN_RS = 12;
const int PIN_E = 11;
const int PIN_DB_4 = 5;
const int PIN_DB_5 = 4;
const int PIN_DB_6 = 3;
const int PIN_DB_7 = 2;
// Buat objek LCD
LiquidCrystal lcd(PIN_RS, PIN_E, PIN_DB_4, PIN_DB_5, PIN_DB_6, PIN_DB_7);
void setup() {
// tentukan ukuran LCD
lcd.begin(16, 2);
}
void loop() {
lcd.clear();
lcd.print("LCD DISPLAY");
lcd.setCursor(0,1);
lcd.print("ADITYA PUTRA K");
delay(4000);
lcd.clear();
lcd.print("tetap semangat");
lcd.setCursor(0,1);
lcd.print("jangan menyerah");
delay(5000);
}