Yes, you can manually save them to flash - but you'll still have to recompile them every time you update the firmware.
To save them to flash, you'd have to copy the atob(...) line, save it somewhere with the flash module, and then change the E.nativeCall(addr, sig, data) line to E.nativeCall(address_in_flash+1, sig).
You can even save them to an SD card if you want. I posted about it here
But I don't really see what that gets you given the need to recompile. If you don't have an internet connection, download and set up http://github.com/gfwilliams/EspruinoCompiler on your computer, then point the Web IDE at it. It'll then dynamically compile your code on your own PC.
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.
Yes, you can manually save them to flash - but you'll still have to recompile them every time you update the firmware.
To save them to flash, you'd have to copy the
atob(...)
line, save it somewhere with the flash module, and then change theE.nativeCall(addr, sig, data)
line toE.nativeCall(address_in_flash+1, sig)
.You can even save them to an SD card if you want. I posted about it here
But I don't really see what that gets you given the need to recompile. If you don't have an internet connection, download and set up http://github.com/gfwilliams/EspruinoCompiler on your computer, then point the Web IDE at it. It'll then dynamically compile your code on your own PC.