Simplest: tweak filenames

pull/1345/head
hughbarney 2022-01-25 21:32:19 +00:00
parent 9a9625c112
commit 1374f48e63
4 changed files with 5 additions and 6 deletions

View File

@ -4,3 +4,4 @@
0.04: Use queueDraw(), update every minute, respect theme, use Lato font
0.05: Decided against custom font as it inceases the code size
minimalism is useful when narrowing down issues
0.06: renamed some files

View File

@ -1,7 +1,7 @@
{
"id": "simplest",
"name": "Simplest Clock",
"version": "0.05",
"version": "0.06",
"description": "The simplest working clock, acts as a tutorial piece",
"icon": "simplest.png",
"screenshots": [{"url":"screenshot_simplest.png"}],
@ -9,7 +9,7 @@
"tags": "clock",
"supports": ["BANGLEJS","BANGLEJS2"],
"storage": [
{"name":"simplest.app.js","url":"app.js"},
{"name":"simplest.img","url":"icon.js","evaluate":true}
{"name":"simplest.app.js","url":"simplest.app.js"},
{"name":"simplest.img","url":"simplest.icon.js","evaluate":true}
]
}

View File

@ -13,7 +13,6 @@ function draw() {
g.setFontAlign(0, 0);
g.setColor(g.theme.fg);
g.drawString(timeStr, w/2, h/2);
queueDraw();
}
@ -42,13 +41,12 @@ Bangle.on('lcdPower',on=>{
g.clear();
// Show launcher when middle button pressed
//Bangle.setUI("clock");
// Bangle.setUI("clock");
// use clockupdown as it tests for issue #1249
Bangle.setUI("clockupdown", btn=> {
draw();
});
// Load widgets
Bangle.loadWidgets();
Bangle.drawWidgets();