Hi - did you try typing save() into the left hand side of the IDE? Normally when you upload code it goes into RAM, and is only saved when you explicitly ask it to be.
(You can turn on 'save on send' in the IDE, but sometimes it's handy to be able to fiddle with the code in RAM before saving it)
Just to add - connecting to a USB battery pack or mains adaptor should work great. The only time it wouldn't is if the battery pack doesn't think Espruino is drawing enough power and so turns itself off - but that usually only happens after a delay.
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.
Hi - did you try typing
save()
into the left hand side of the IDE? Normally when you upload code it goes into RAM, and is only saved when you explicitly ask it to be.(You can turn on 'save on send' in the IDE, but sometimes it's handy to be able to fiddle with the code in RAM before saving it)
Just to add - connecting to a USB battery pack or mains adaptor should work great. The only time it wouldn't is if the battery pack doesn't think Espruino is drawing enough power and so turns itself off - but that usually only happens after a delay.