Hey guys,
I’m a bit of a newbie, so bear with me.
I have my imp controlling an RGB LED with PWM. The LED can morph between different colors.
You program it using a form on a webpage where you can input new colors to morph to. The morphing happens inside of a “while(1){…}” loop, so it repeats on and on forever.
The problem is that when a new message arrives from the web form over the input port, the imp is stuck inside of its color-morphing loop. How do I get it to break out of the loop when a new message comes in from the web?
Thanks!