• 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.

About

Avatar for Gordon @Gordon started