countdown app to show something

master
Martin Zwigl 2025-02-23 21:37:48 +01:00
parent a2b59b5765
commit 9e05058a3d
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
{
Bangle.loadWidgets();
Bangle.drawWidgets();
function countDown() {
counter--;
g.clear();
// draw the current counter value
g.drawString(counter, g.getWidth()/2, g.getHeight()/2);
// optional - this keeps the watch LCD lit up
Bangle.setLCDPower(1);
}
// call countDown every second
var interval = setInterval(countDown, 1000);
//
Bangle.setUI({
mode : 'custom',
back : Bangle.showClock,
});
}