#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
// put your setup code here, to run once:
lcd.init();
lcd.backlight();
pinMode(7, INPUT);
}
void loop() {
// awal muncul nama:
lcd.setCursor (0,0);
lcd.print ("Fathan Zahedi F.");
//tombol ditekan absen dan NIM:
if (digitalRead(7)==HIGH){
lcd.clear ();
lcd.setCursor (7,0);
lcd.print("05");
lcd.setCursor (3,1);
lcd.print("2041150072");
delay (3000);
lcd.clear();
}
}