Hello everyone, i need help in a program who i am doing to on a led, but the program gives me a error(
sketch_dec28e:17: error: expected unqualified-id before '?' token
}?
^
exit status 1
expected unqualified-id before '?' token
)and i dont know why, please help me, here is the code of the program and some extra info :
CODE :
int PULSADOR = 2;
int LED=3;
int Estado=LOW;
void setup(){
pinMode(PULSADOR, INPUT);
pinMode(LED, OUTPUT);
digitalWrite(LED, LOW);
}
void loop (){
while(digitalRead(PULSADOR)==LOW);
Estado = digitalRead(LED);
digitalWrite(LED, !Estado);
while(digitalRead(PULSADOR)==HIGH);
}
EXTRA INFO :
Arduino:1.8.5 (Windows 10), Tarjeta:"Arduino/Genuino Uno"
sketch_dec28e:17: error: expected unqualified-id before '?' token
}?
^
exit status 1
expected unqualified-id before '?' token