Widbata: documentation tweaks

master
hughbarney 2021-12-05 12:30:29 +00:00
parent 11a598e024
commit c60f26eeca
2 changed files with 4 additions and 4 deletions

View File

@ -4689,7 +4689,7 @@
"description": "Shows the current battery level status in the top right using the clocks colour theme", "description": "Shows the current battery level status in the top right using the clocks colour theme",
"tags": "widget,battery", "tags": "widget,battery",
"storage": [ "storage": [
{"name":"widbat.wid.js","url":"widbata.wid.js"} {"name":"widbata.wid.js","url":"widbata.wid.js"}
] ]
} }
] ]

View File

@ -1,8 +1,8 @@
setInterval(()=>WIDGETS["bat"].draw(), 60000); setInterval(()=>WIDGETS["bata"].draw(), 60000);
Bangle.on('lcdPower', function(on) { Bangle.on('lcdPower', function(on) {
if (on) WIDGETS["bat"].draw(); if (on) WIDGETS["bata"].draw();
}); });
WIDGETS["bat"]={area:"tr",width:27,draw:function() { WIDGETS["bata"]={area:"tr",width:27,draw:function() {
var s = 26; var s = 26;
var t = 13; // thickness var t = 13; // thickness
var x = this.x, y = this.y; var x = this.x, y = this.y;