That would be appropriate for "light sleep" in which memory is preserved. Deep sleep does not preserve memory. When it wakes up it's as if someone had pressed the reset button. (That's actually literally what happens.)
I know how to implement light sleep, but haven't gotten to it yet. It's a bit more complicated.
© Espruino, powered by microcosm.
Report a problem