While this hasn't been posted on the forum yet, new (cutting edge, 1v96 and later when released) firmwares now have a nonvolatile Storage module:
Storage
>s.write("config","Lalalala") =true >s.read("config") ="Lalalala"
There will be some JSON support in there soon as well, but this should make everyone's life a lot easier.
@Gordon started
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.
While this hasn't been posted on the forum yet, new (cutting edge, 1v96 and later when released) firmwares now have a nonvolatile
Storage
module:There will be some JSON support in there soon as well, but this should make everyone's life a lot easier.