//program menyalakan dan mematikan lampu dengan pushbotton
//created by Febby_Liyanna
int tombol_on;
int tombol_off;
int lampu = 2;
void setup (){
pinMode(19, INPUT_PULLUP);
pinMode(23, INPUT_PULLUP);
pinMode(lampu, OUTPUT);
}
void loop (){
tombol_on = digitalRead(19);
tombol_off = digitalRead(23);
if(tombol_on == 0){
digitalWrite(lampu, HIGH);
}
else if(tombol_off == 0){
digitalWrite(lampu, LOW);
}
}