#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
int lampu = 3;
void setup() {
// put your setup code here, to run once:
lcd.init();
lcd.backlight();
pinMode(lampu, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(0, 3);
lcd.print("Lampu On");
digitalWrite(lampu, HIGH);
delay(1000);
lcd.clear();
lcd.print("Lampu Off");
digitalWrite(lampu, LOW);
delay(1000);
lcd.clear();
}