I’m newbie in Arduino platform. I have done a sketch on Arduino Mega which will take external interrupt on RISING edge on PIN2 and as an indicator do high the PIN13. When PIN2 gets logic level LOW, It scan for 15 seconds. If PIN2 is low for 15 seconds it will do PIN13 LOW. That’s why I used timer 1. Interrupt works fine. While PIN2 gets LOW, PIN13 gets LOW before 15 seconds. BUT I think timer is okay. What’s the problem actually?
TT.ino (1.36 KB)