#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
bool button;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(25, INPUT_PULLUP);
pinMode(26, OUTPUT);
lcd.init();
lcd.backlight();
}
void loop() {
// put your main code here, to run repeatedly:
button = digitalRead(25);
digitalWrite(26, button);
lcd.setCursor(0,0);
lcd.print("Tombol: ");
lcd.print(button);
delay(500);
// this speeds up the simulation
}