Just to add - if you call onInit manually, then save, if you're adding setInterval and stuff like that you might find that you end up with two of them. You can add code to cancel them, or you can try and remember not to run onInit when you're about to save your code.
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 - if you call
onInit
manually, thensave
, if you're addingsetInterval
and stuff like that you might find that you end up with two of them. You can add code to cancel them, or you can try and remember not to runonInit
when you're about to save your code.