forked from FOSS/BangleApps
commit
867198698d
|
@ -9,3 +9,4 @@
|
||||||
0.09: Changed day color back to white
|
0.09: Changed day color back to white
|
||||||
0.10: Add blinking when charging
|
0.10: Add blinking when charging
|
||||||
0.11: Changed battery to buzz instead of blink and fixed battery counter
|
0.11: Changed battery to buzz instead of blink and fixed battery counter
|
||||||
|
0.12: Got rid of battery counter
|
|
@ -5,7 +5,6 @@ var settings = Object.assign({
|
||||||
showbat: true,
|
showbat: true,
|
||||||
}, require('Storage').readJSON("binaryclk.json", true) || {});
|
}, require('Storage').readJSON("binaryclk.json", true) || {});
|
||||||
|
|
||||||
var cnt = 0;
|
|
||||||
var gap = 4;
|
var gap = 4;
|
||||||
var mgn = 24;
|
var mgn = 24;
|
||||||
var sq = 33;
|
var sq = 33;
|
||||||
|
@ -96,16 +95,8 @@ function draw() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings.showbat) {
|
if (settings.showbat) {
|
||||||
var batcnt = cnt;
|
drawbat();
|
||||||
if (batcnt == 0) {
|
drawbatrect();
|
||||||
drawbat();
|
|
||||||
drawbatrect();
|
|
||||||
}
|
|
||||||
cnt++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (cnt > 29) {
|
|
||||||
cnt = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "binaryclk",
|
"id": "binaryclk",
|
||||||
"name": "Bin Clock",
|
"name": "Bin Clock",
|
||||||
"version": "0.11",
|
"version": "0.12",
|
||||||
"description": "Binary clock with date and battery",
|
"description": "Binary clock with date and battery",
|
||||||
"icon": "app-icon.png",
|
"icon": "app-icon.png",
|
||||||
"screenshots": [{"url":"screenshot.png"}],
|
"screenshots": [{"url":"screenshot.png"}],
|
||||||
|
|
Loading…
Reference in New Issue