Si, me quedó una línea mal ubicada ![]()
void loop() {
status = digitalRead(botonPin);
if (!status && statusAnt) { // cuando pulses el boton pasa de 1 a 0
botonStatus = !botonStatus;
digitalWrite(LED, botonStatus);
}
if (botonStatus) {
girar_derecha();
}
statusAnt = status;
}
Saludos