It depends how you saved the code but chances are you need to put the code you want to run at boot into a function called onInit
onInit
@Gordon started
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.
It depends how you saved the code but chances are you need to put the code you want to run at boot into a function called
onInit