Changing name from clck3x2 to clock2x3, setting clock type, simplifying app code
parent
589d18b4fc
commit
048a9bb64f
15
apps.json
15
apps.json
|
|
@ -143,16 +143,17 @@
|
||||||
{"name":"aclock.img","url":"clock-analog-icon.js","evaluate":true}
|
{"name":"aclock.img","url":"clock-analog-icon.js","evaluate":true}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{ "id": "clck3x2",
|
{ "id": "clock2x3",
|
||||||
"name": "3x2 Pixel Clock",
|
"name": "2x3 Pixel Clock",
|
||||||
"icon": "clock3x2.png",
|
"icon": "clock2x3.png",
|
||||||
"version":"0.03",
|
"version":"0.04",
|
||||||
"description": "This is a simple clock using minimalistic 3x2 pixel numerical digits",
|
"description": "This is a simple clock using minimalist 2x3 pixel numerical digits",
|
||||||
"tags": "clock",
|
"tags": "clock",
|
||||||
|
"type": "clock",
|
||||||
"allow_emulator":true,
|
"allow_emulator":true,
|
||||||
"storage": [
|
"storage": [
|
||||||
{"name":"clck3x2.app.js","url":"clock3x2.js"},
|
{"name":"clock2x3.app.js","url":"clock2x3-app.js"},
|
||||||
{"name":"clck3x2.img","url":"clock3x2-icon.js","evaluate":true}
|
{"name":"clock2x3.img","url":"clock2x3-icon.js","evaluate":true}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{ "id": "trex",
|
{ "id": "trex",
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
0.02: Modified for use with new bootloader and firmware
|
0.02: Modified for use with new bootloader and firmware
|
||||||
0.03: Added 'reset' so we don't get the font color from widgets
|
0.03: Added 'reset' so we don't get the font color from widgets
|
||||||
|
0.04: Changed name from clck3x2 to clock2x3
|
||||||
|
|
@ -76,8 +76,7 @@ function drawTime() {
|
||||||
}
|
}
|
||||||
|
|
||||||
let t = d.getSeconds()*1000 + d.getMilliseconds();
|
let t = d.getSeconds()*1000 + d.getMilliseconds();
|
||||||
let delta = (60000 - t) % 60000; // time till next minute
|
idTimeout = setTimeout(drawTime, 60000 - t); // time till next minute
|
||||||
idTimeout = setTimeout(drawTime, delta);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// special function to handle display switch on
|
// special function to handle display switch on
|
||||||
|
Before Width: | Height: | Size: 145 B After Width: | Height: | Size: 145 B |
Loading…
Reference in New Issue