That should save both on CPU cycles and flash writes.
Not if you're constantly writing that staging file?
But if you're not leaving the app then just keeping the last value in a variable and being sure to write it in an E.on("kill",...) handler would do it?
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.
Not if you're constantly writing that staging file?
But if you're not leaving the app then just keeping the last value in a variable and being sure to write it in an
E.on("kill",...)
handler would do it?