Hi, I'd like to know how interrupts actually work. I just tried flashing the onboard LED and using the switch to start/stop the flashing but found that it would respond slowly to the press that should leave the LED turned off. My code is http://paste2.org/p/1832360 if you want to take a look but it's quite messy.
I press the button when the LED is off which should end the main (inner) loop and leave the LED off but what I'm seeing is the LED turn back on and stay on until I press the button again when it'll just resume flashing.
How do interrupts work?
Started by
Zoidberg
, Dec 21 2011 12:06 AM
1 reply to this topic
#1
Posted 21 December 2011 - 12:06 AM
#2
Posted 21 December 2011 - 12:35 AM
Hi Zoidberg,
I'd try simplifying your code a little bit. There's a tutorial on this on the projects page...which should help you get started.
If that doesn't help, let us know...and we'll help point you in the right direction.
Chris
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users