Good day...
i made this program to alternate the LEDs when interrupt is trigger..i tried uploading it and it work but the problem is that sometimes it alternates super fast that it seems it didn't alternate but the indicators blinked..heres my code..
How are you triggering the interrupt? The most likely reason is that you are getting multiple interrupts because of "bounce" from the switch that is triggering the interrupt. Look up using a 7414 as a debounce circuit.
Also - you only need to check for HIGH or LOW as there are no other states, and Blink just changes the state of turn from High to Low.