1
0
Fork 0

Update app.js

master
Klaus-Peter Bernschneider 2022-03-15 10:43:10 +01:00 committed by GitHub
parent 641aa7c904
commit f51c72e234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ function drawSimpleClock() {
g.setFont("Vector",60);
g.drawString(time, xyCenter, yposTime, true);
var date = [loc.dow(new Date(),1), loc.date(d,1)].join(" "); // draw Day, name of month, Date
var date = [loc.dow(new Date(),1), loc.date(d,1)].join(" "); // draw day of week, date
g.setFont("Vector",24);
g.drawString(date, xyCenter, yposDate, true);
@ -71,9 +71,9 @@ g.clear(); // clean app screen
Bangle.loadWidgets();
Bangle.drawWidgets();
setInterval(updatePos, 60*15E3); // refesh every 15 mins
setInterval(updatePos, 60*5E3); // refesh every 5 mins
updatePos();
drawSimpleClock(); // draw now
setWatch(Bangle.showLauncher, BTN1, { repeat: false, edge: "falling" }); // Show launcher when button pressed
setWatch(Bangle.showLauncher, BTN1, { repeat: false, edge: "falling" }); // Show launcher when button pressed