#define LED_PIN 10 #define BUTTON_PIN 2 void setup() { pinMode(LED_PIN, OUTPUT); pinMode(BUTTON_PIN, INPUT); attachInterrupt(digitalPinToInterrupt(BUTTON_PIN), blinkLed, RISING); } void loop() { digitalWrite(LED_PIN, LOW); // turn the LED off by making the voltage LOW delay(5000); } void blinkLed() { digitalWrite(LED_PIN, HIGH); }