Update move font size

master
v1nc 2020-05-07 21:39:40 +02:00 committed by GitHub
parent e7bd0d6f82
commit 5f269726b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ function loadSettings() {
function remind() {
Bangle.buzz(1000,1);
g.clear();
g.setFont("8x12",4);
g.setColor(0x03E0);
g.drawString("MOVE!", g.getWidth()/2, g.getHeight()/2);
setTimeout(print_message,setting("moveTime") * 60000);
@ -30,6 +31,7 @@ function remind() {
//draw sitting message and start timer for reminder
function print_message(){
g.clear();
g.setFont("8x12",2);
g.setColor(0xF800);
g.drawString("sitting is dangerous!", g.getWidth()/2, g.getHeight()/2);
setTimeout(remind,setting("sitTime") * 60000);
@ -37,7 +39,6 @@ function print_message(){
//init graphics
require("Font8x12").add(Graphics);
g.setFont("8x12",2);
g.setFontAlign(0,0);
g.flip();