The watch code was actually really nasty because I was trying to squeeze it down really small, but yes, 0xAE/0xAF are the commands you want.
I'd add a function called setPower or something if I were you (rather than using cmd directly). I guess it's possible you might be able to get the power consumption down even more with some other commands.
It's a shame you can't easily extend the graphics lib at the moment... I think if you were going to commit a modified module for everyone else to use, using cmd would be a good idea though.
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.
The watch code was actually really nasty because I was trying to squeeze it down really small, but yes,
0xAE
/0xAF
are the commands you want.I'd add a function called
setPower
or something if I were you (rather than usingcmd
directly). I guess it's possible you might be able to get the power consumption down even more with some other commands.It's a shame you can't easily extend the graphics lib at the moment... I think if you were going to commit a modified module for everyone else to use, using
cmd
would be a good idea though.