const int tombol [1] = {2};
const int lampu [1] = {8};
void setup() {
for(int i=0; i<1; i++){
pinMode(lampu[i], OUTPUT);
}
for(int i=0; i<1; i++){
pinMode(tombol[i], INPUT);
}
for(int i=0; i<1; i++){
digitalWrite(tombol[i], HIGH);
}
}
void loop() {
for(int i=0; i<1; i++)
if(digitalRead(tombol[i]) == LOW){
digitalWrite(lampu[i], HIGH);
}
else {
digitalWrite(lampu[i], LOW);
}
}