forked from FOSS/BangleApps
Merge branch 'master' of github.com:espruino/BangleApps
commit
8875e41f2f
|
@ -11,7 +11,7 @@
|
||||||
"custom": "custom.html",
|
"custom": "custom.html",
|
||||||
"customConnect": true,
|
"customConnect": true,
|
||||||
"storage": [
|
"storage": [
|
||||||
|
|
||||||
],
|
],
|
||||||
"sortorder": -20
|
"sortorder": -20
|
||||||
},
|
},
|
||||||
|
@ -1297,7 +1297,7 @@
|
||||||
"supports": ["BANGLEJS"],
|
"supports": ["BANGLEJS"],
|
||||||
"custom": "custom.html",
|
"custom": "custom.html",
|
||||||
"storage": [
|
"storage": [
|
||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -3452,7 +3452,7 @@
|
||||||
{
|
{
|
||||||
"id": "simplest",
|
"id": "simplest",
|
||||||
"name": "Simplest Clock",
|
"name": "Simplest Clock",
|
||||||
"version": "0.02",
|
"version": "0.03",
|
||||||
"description": "The simplest working clock, acts as a tutorial piece",
|
"description": "The simplest working clock, acts as a tutorial piece",
|
||||||
"icon": "simplest.png",
|
"icon": "simplest.png",
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
0.01: Modified for use with new bootloader and firmware
|
0.01: Modified for use with new bootloader and firmware
|
||||||
0.02: Use Bangle.setUI for button/launcher handling
|
0.02: Use Bangle.setUI for button/launcher handling
|
||||||
|
0.03: Fix display for Bangle 2
|
||||||
|
|
|
@ -1,14 +1,17 @@
|
||||||
|
|
||||||
|
const h = g.getHeight();
|
||||||
|
const w = g.getWidth();
|
||||||
|
|
||||||
function draw() {
|
function draw() {
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
var da = d.toString().split(" ");
|
var da = d.toString().split(" ");
|
||||||
var time = da[4].substr(0,5);
|
var time = da[4].substr(0,5);
|
||||||
|
|
||||||
g.reset();
|
g.reset();
|
||||||
g.clearRect(0, 30, 239, 99);
|
g.clearRect(0, 30, w, 99);
|
||||||
g.setFontAlign(0, -1);
|
g.setFontAlign(0, -1);
|
||||||
g.setFont("Vector", 80);
|
g.setFont("Vector", w/3);
|
||||||
g.drawString(time, 120, 40);
|
g.drawString(time, w/2, 40);
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle switch display on by pressing BTN1
|
// handle switch display on by pressing BTN1
|
||||||
|
|
Loading…
Reference in New Issue