You know you've misspelt setInterval as setIterval, and haven't put brackets around functions that I think you expect to be executed in the same 'if' statement?
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.
You know you've misspelt
setInterval
assetIterval
, and haven't put brackets around functions that I think you expect to be executed in the same 'if' statement?When you upload, do you not get any errors reported on the console? If you do, could you post them up? They might explain why it's not working.