If you create a function called onInit and then save it to the board with save(), it'll be run on startup. But it you type save() then every function you defined is saved a well.
Or are you after something in the web ide? I'd imagine you're better just tacking the code to the front of whatever you send from blockly...
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.
If you create a function called
onInit
and then save it to the board withsave()
, it'll be run on startup. But it you typesave()
then every function you defined is saved a well.Or are you after something in the web ide? I'd imagine you're better just tacking the code to the front of whatever you send from blockly...