mirror of https://github.com/espruino/BangleApps
Widbata: documentation tweaks
parent
11a598e024
commit
c60f26eeca
|
@ -4689,7 +4689,7 @@
|
|||
"description": "Shows the current battery level status in the top right using the clocks colour theme",
|
||||
"tags": "widget,battery",
|
||||
"storage": [
|
||||
{"name":"widbat.wid.js","url":"widbata.wid.js"}
|
||||
{"name":"widbata.wid.js","url":"widbata.wid.js"}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
setInterval(()=>WIDGETS["bat"].draw(), 60000);
|
||||
setInterval(()=>WIDGETS["bata"].draw(), 60000);
|
||||
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 t = 13; // thickness
|
||||
var x = this.x, y = this.y;
|
||||
|
|
Loading…
Reference in New Issue