You could a actually implement the sleeping in the jshSleep function - and then as @DrAzzy says, it would work automatically after being turned on with setDeepSleep(1) (assuming this doesn't reset the whole device?).
Pull requests would be great and are definitely accepted - as long as they don't break things that worked before :)
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 a actually implement the sleeping in the
jshSleep
function - and then as @DrAzzy says, it would work automatically after being turned on withsetDeepSleep(1)
(assuming this doesn't reset the whole device?).Pull requests would be great and are definitely accepted - as long as they don't break things that worked before :)