// set pin numbers
const int pushButton_pin = 4; // the number of the pushbutton pin
const int LED_pin = 5; // the number of the LED pin
void IRAM_ATTR toggleLED()
{
digitalWrite(LED_pin, !digitalRead(LED_pin));
}
void setup()
{
pinMode(LED_pin, OUTPUT);
pinMode(pushButton_pin, INPUT);
attachInterrupt(pushButton_pin, toggleLED, RISING);
}
void loop()
{
}
$abcdeabcde151015202530354045505560fghijfghij