#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()
{
lcd.begin(16, 2);
}
void loop()
{
lcd.clear();
lcd.print("1 + 1 ada brapa?");
lcd.setCursor(0, 1);
lcd.print("Dari dulu juga 2");
delay(5000); lcd.clear();
lcd.print("Mahu tidak mahu");
lcd.setCursor(0, 1);
lcd.print("Trus maju selalu");
delay(5000);
}