You could type reset(); save();
If you want a reboot command always available, just do:
E.setBootCode("function reboot() { reset(); save(); }");
That would do the trick for you. It would also be in memory after you reset or saved something.
BTW: I would not necessarily name that reboot. After all if you reboot a computer it does not wipe the harddisk :-).
@stevie4711 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.
You could type reset(); save();
If you want a reboot command always available, just do:
That would do the trick for you. It would also be in memory after you reset or saved something.
BTW: I would not necessarily name that reboot. After all if you reboot a computer it does not wipe the harddisk :-).