You should be able to just long-press BTN1 while booting (hold it right through the bootloader, and through the self test even when it tells you to remove your finger). That'll boot without loading saved code and should clear any code out of flash - you can always connect at that point and do require("Storage").eraseAll() to make absolutely sure everything is gone though.
Espruino won't touch the flash memory that contains the interpreter itself (unless you explicitly enable that functionality) so if this happens again you should always be able to recover using the BTN1 trick.
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.
You should be able to just long-press BTN1 while booting (hold it right through the bootloader, and through the self test even when it tells you to remove your finger). That'll boot without loading saved code and should clear any code out of flash - you can always connect at that point and do
require("Storage").eraseAll()
to make absolutely sure everything is gone though.Espruino won't touch the flash memory that contains the interpreter itself (unless you explicitly enable that functionality) so if this happens again you should always be able to recover using the BTN1 trick.