mirror of https://github.com/espruino/BangleApps
commit
186f6c6180
|
@ -1492,7 +1492,7 @@
|
||||||
"name": "Digital Assistant, not EDITH",
|
"name": "Digital Assistant, not EDITH",
|
||||||
"shortName": "DANE",
|
"shortName": "DANE",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"version": "0.15",
|
"version": "0.16",
|
||||||
"description": "A Watchface inspired by Tony Stark's EDITH and based on https://arwes.dev/",
|
"description": "A Watchface inspired by Tony Stark's EDITH and based on https://arwes.dev/",
|
||||||
"tags": "clock",
|
"tags": "clock",
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
|
|
|
@ -11,3 +11,4 @@
|
||||||
0.13: Improve icon
|
0.13: Improve icon
|
||||||
0.14: Switch Icon back to 8bit web palette to fix it
|
0.14: Switch Icon back to 8bit web palette to fix it
|
||||||
0.15: Hotfix: Remove var declaration from app image
|
0.15: Hotfix: Remove var declaration from app image
|
||||||
|
0.16: Revert: Change Counter back to button control
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue