Just to add, there is an every X seconds do block - this allows you to write code that will upload fine (and that can do multiple things concurrently - your current code will be unable to respond to (eg) button presses, because it's busy doing the 'waiting').
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.
Just to add, there is an
every X seconds do
block - this allows you to write code that will upload fine (and that can do multiple things concurrently - your current code will be unable to respond to (eg) button presses, because it's busy doing the 'waiting').