// LCD1602 to Arduino Uno connection example
#include <LiquidCrystal.h>
#include <Servo.h>
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
Servo myservo;
#define btn1 2
#define door 3
enum Status {
Tutup,
Wait1,
Buka,
Terbuka
Wait2
};
Status kondisi=Tutup;
void setup() {
lcd.begin(16, 2);
// you can now interact with the LCD, e.g.:
lcd.print("Hello World!");
myservo.attach(A0);
pinMode(btn1, INPUT);
pinMode(door, INPUT);
}
void loop() {
switch(kondisi){
case Tutup:
break;
case Wait1:
break;
case Buka:
break;
case Terbuka:
break;
case Wait2:
break;
}
}