Thanks for the advice as it worked really well. However, I'm still confused for all the LEDS to flash when the goal is reached. We know how to set a timer for how long should all the LEDS flash but we don't know how to make it flash. Before we could used
(var l;setInterval("digitalWrite(LED1,l=!l);",200);
var l;setInterval("digitalWrite(LED1,2=!l);",200);
var l;setInterval("digitalWrite(LED1,3=!l);",200);)
but it doesn't work anymore. I tried one of them but it was not flashing. Do you guys have any ideas?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
hi robin and gordon,
Thanks for the advice as it worked really well. However, I'm still confused for all the LEDS to flash when the goal is reached. We know how to set a timer for how long should all the LEDS flash but we don't know how to make it flash. Before we could used
(var l;setInterval("digitalWrite(LED1,l=!l);",200);
var l;setInterval("digitalWrite(LED1,2=!l);",200);
var l;setInterval("digitalWrite(LED1,3=!l);",200);)
but it doesn't work anymore. I tried one of them but it was not flashing. Do you guys have any ideas?