Cleanup
parent
e2a3a93409
commit
b5d66a6649
|
|
@ -1,2 +1,3 @@
|
||||||
0.01: Initial creation
|
0.01: Initial creation
|
||||||
0.02: Debugging
|
0.02: Debugging
|
||||||
|
0.03: Debugging
|
||||||
|
|
@ -2,21 +2,11 @@
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
||||||
|
|
||||||
let counter = 30;
|
g.clear();
|
||||||
|
// draw the current counter value
|
||||||
|
g.drawString("TEST", g.getWidth()/2, g.getHeight()/2);
|
||||||
|
|
||||||
function countDown() {
|
|
||||||
counter--;
|
|
||||||
|
|
||||||
g.clear();
|
|
||||||
// draw the current counter value
|
|
||||||
g.drawString(counter, g.getWidth()/2, g.getHeight()/2);
|
|
||||||
// optional - this keeps the watch LCD lit up
|
|
||||||
Bangle.setLCDPower(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// call countDown every second
|
|
||||||
var interval = setInterval(countDown, 1000);
|
|
||||||
//
|
|
||||||
Bangle.setUI({
|
Bangle.setUI({
|
||||||
mode : 'custom',
|
mode : 'custom',
|
||||||
back : Bangle.showClock,
|
back : Bangle.showClock,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ "id": "coin_info",
|
{ "id": "coin_info",
|
||||||
"name": "Crypto-Coins Info",
|
"name": "Crypto-Coins Info",
|
||||||
"shortName":"Coins Info",
|
"shortName":"Coins Info",
|
||||||
"version": "0.02",
|
"version": "0.03",
|
||||||
"description": "Crypto-Coins Infos with the help of the Coinmarketcap API",
|
"description": "Crypto-Coins Infos with the help of the Coinmarketcap API",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"type": "bootloader",
|
"type": "bootloader",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue