Just type save() on the left-hand side after uploading your code - job done!
Everything should resume where it left off - but if you want to run some code specifically at startup, either do E.on('init', function() { your code }) or create a function called onInit - which will get called automatically, for example:
function onInit() {
digitalPulse(LED1,1,1000);
}
(you can also turn on save on send in the IDE's options, but that's more advanced - I'd just use
the save() method for now)
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 type
save()
on the left-hand side after uploading your code - job done!Everything should resume where it left off - but if you want to run some code specifically at startup, either do
E.on('init', function() { your code })
or create a function calledonInit
- which will get called automatically, for example:(you can also turn on
save on send
in the IDE's options, but that's more advanced - I'd just usethe
save()
method for now)