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