function startdraw() {
Bangle.drawWidgets();
///face.init(); // No as startDraw() will be called when LCD comes on again
face.startTimer();
}
function setButtons(){
function nextFace(){
iface += 1
iface = iface % FACES.length;
stopdraw();
face = FACES[iface]();
face.init(); // only call init() when switching faces
g.clear();
g.reset();
startdraw();
}
the standard code for stopping / starting the draw/timers
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.
I tracked it down. See comments below.
the standard code for stopping / starting the draw/timers