1
0
Fork 0

Merge pull request #3363 from shansou504/master

binaryclk: 0.12 removed battery counter
master
Rob Pilling 2024-04-19 08:50:16 +01:00 committed by GitHub
commit 867198698d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 12 deletions

View File

@ -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

View File

@ -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,17 +95,9 @@ function draw() {
} }
if (settings.showbat) { if (settings.showbat) {
var batcnt = cnt;
if (batcnt == 0) {
drawbat(); drawbat();
drawbatrect(); drawbatrect();
} }
cnt++;
}
if (cnt > 29) {
cnt = 0;
}
} }
g.clear(); g.clear();

View File

@ -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"}],