Change to 'custom' setUI to not set btn watch
> ['clock' - called for clocks. Sets Bangle.CLOCK=1 and allows a button to start the launcher](https://www.espruino.com/Reference#l_Bangle_setUI)master
parent
7ee3279a02
commit
663ea983e4
|
|
@ -65,12 +65,13 @@ const draw = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
Bangle.setUI({
|
Bangle.setUI({
|
||||||
mode: "clock",
|
mode: "custom",
|
||||||
remove: () => {
|
remove: () => {
|
||||||
if (nextDraw) clearTimeout(nextDraw);
|
if (nextDraw) clearTimeout(nextDraw);
|
||||||
nextDraw = undefined;
|
nextDraw = undefined;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Bangle.CLOCK=1;
|
||||||
|
|
||||||
g.clear();
|
g.clear();
|
||||||
draw();
|
draw();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue