Hi I wonder how to set code to do some events one by one with some delay,
let say when I press the button would like to run first one LED1 and after some delay want to see LED2 light on when LED1 is off. As there is no simple delay was trying to use setTimeout but not working.
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 I wonder how to set code to do some events one by one with some delay,
let say when I press the button would like to run first one LED1 and after some delay want to see LED2 light on when LED1 is off. As there is no simple delay was trying to use setTimeout but not working.