Yes... I had been wondering about that - you could potentially save/restore into Storage, but it's not going to be very fast, and potentially some peripherals that need setting up could end up broken when restored.
As @rigrig says you can (and some apps do) just use the kill event to save and restore, and that works pretty well.
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... I had been wondering about that - you could potentially save/restore into Storage, but it's not going to be very fast, and potentially some peripherals that need setting up could end up broken when restored.
As @rigrig says you can (and some apps do) just use the
kill
event to save and restore, and that works pretty well.