#define LED 12
#define boton 32
bool estado;
void setup() {
pinMode(LED, OUTPUT);
pinMode(boton, INPUT_PULLUP);
estado = LOW;
}
void loop() {
bool estadoBoton= digitalRead(boton);
if (estadoBoton== LOW) {
estado = !estado;
digitalWrite(LED, estado);
delay(400);
}
}