bool button = 0;
bool statusLED = 0;
void setup() {
// put your setup code here, to run once:
pinMode(25, INPUT_PULLUP);
pinMode(26, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
button = digitalRead(25);
if(button ==0){
if(statusLED ==0){
statusLED = 1;
}else{
statusLED = 0;
}
}
digitalWrite(26, statusLED);
delay(500);
}