03-17-2015 08:22 AM
Hello guys,
My program has radio buttons to control blinking rate of LED. I need to put interrupt (timer) to switch off LED after 10seconds. Lets say SW0 is pressed, LED starts blinking 10 seconds and then switch off. Here I have some problems, when I press SW0 and wait 3 seconds and press SW1 and press back SW0, the LED switches off after 7 seconds. I guess the timer is not reset to count 10 seconds, but saves its previous time.
Can anyone explain what I am doing wrong???
Thank you!
ABSIAS
Solved! Go to Solution.
03-17-2015 08:25 AM
Please don't ask the very same question in more than one thread!
03-17-2015 10:18 PM
But how to make sure that in every switch change, the elapsed time resets and counts 10 seconds from begginin? and if no state change during 10 seconds, the elapsed timer turns off LED.