ok - the problem is something todo with the timer and the Bangle.on('lcdPower', function(on).
Not sure why the following code is needed on a B2 when the screen is on all the time.
// Only update when display turns on
if (process.env.BOARD!="SMAQ3") // hack for Q3 which is always-on
Bangle.on('lcdPower', function(on) {
if (secondInterval)
clearInterval(secondInterval);
secondInterval = undefined;
if (on)
secondInterval = setInterval(draw, 1000);
draw();
});
I've made the following changes and pastel clock now works with Full Screen Notifications.
I think in future when users report issues with Gadgetbridge the first question should be to switch to one of the stock clocks.
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.
ok - the problem is something todo with the timer and the Bangle.on('lcdPower', function(on).
Not sure why the following code is needed on a B2 when the screen is on all the time.
I've made the following changes and pastel clock now works with Full Screen Notifications.
I think in future when users report issues with Gadgetbridge the first question should be to switch to one of the stock clocks.
1 Attachment