//PROGAM MENYALAKAN DAN MEMATIKAN LAMPU DENGAN TOMBOL PUSHBOTTON
//PROJECT BY FEBBY LIYANNA X RPL 3
int led = 2;
int tombol;
void setup() {
pinMode(led, OUTPUT);
pinMode(19, INPUT_PULLUP);
}
void loop() {
tombol = digitalRead(19);
if (tombol == 0){
digitalWrite(led, HIGH);
delay (1000);
}
else if (tombol == 1){
digitalWrite(led, LOW);
}
}