// LCD1602 to Arduino Uno connection example
#include <LiquidCrystal.h>
#define button1 A5
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
void setup() {
pinMode(button1, INPUT_PULLUP);
lcd.begin(16, 2);
// you can now interact with the LCD, e.g.:
lcd.setCursor(5,0);
lcd.print("hai dea");
delay(3000);
lcd.clear();
}
void loop() {
lcd.setCursor(0,0);
lcd.print("masukkan pass :");
lcd.setCursor(0,1);
lcd.print('_');
if(digitalRead(button1) == LOW)
{
lcd.clear();
lcd.print("password OK");
delay(5000);
}
}