(DANE) Revert Number display to button counter

Revert Number display to button counter as mentioned in #613

Signed-off-by: OmegaRogue <omegarogue@omegavoid.codes>
pull/632/head
OmegaRogue 2021-01-13 15:07:32 +01:00
parent 206f9f5360
commit 30b6763ee0
No known key found for this signature in database
GPG Key ID: 118FA8EB46EA7B87
1 changed files with 9 additions and 9 deletions

View File

@ -67,7 +67,7 @@ function levelColor(l) {
function drawBattery() { function drawBattery() {
const l = E.getBattery(), c = levelColor(l); const l = E.getBattery(), c = levelColor(l);
count = l; // count = l;
const xl = 45 + l * (194 - 46) / 100; const xl = 45 + l * (194 - 46) / 100;
g.clearRect(46, 58 + 80 + yOffset + 37, 193, height - 5); g.clearRect(46, 58 + 80 + yOffset + 37, 193, height - 5);
g.setColor(c).fillRect(46, 58 + 80 + yOffset + 37, xl, height - 5); g.setColor(c).fillRect(46, 58 + 80 + yOffset + 37, xl, height - 5);
@ -124,14 +124,14 @@ drawClock();
setWatch(Bangle.showLauncher, BTN2, {repeat: false, edge: "falling"}); setWatch(Bangle.showLauncher, BTN2, {repeat: false, edge: "falling"});
// setWatch(function () { setWatch(function () {
// count++; count++;
// drawCounterText(); drawCounterText();
// }, BTN1, {repeat: true, edge: "falling"}); }, BTN1, {repeat: true, edge: "falling"});
// setWatch(function () { setWatch(function () {
// count--; count--;
// drawCounterText(); drawCounterText();
// }, BTN3, {repeat: true, edge: "falling"}); }, BTN3, {repeat: true, edge: "falling"});
// refesh every 100 milliseconds // refesh every 100 milliseconds
setInterval(updateClock, 500); setInterval(updateClock, 500);