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, powered by microcosm.
Report a problem