but it's to do with the order of execution on initialisation, where onInit actually gets called before everything else. I'll change that for the next version of the firmware though.
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.
Hmm, that's an interesting problem actually. This should work:
or this should work:
but it's to do with the order of execution on initialisation, where
onInit
actually gets called before everything else. I'll change that for the next version of the firmware though.