master
v1nc 2020-05-07 20:48:10 +02:00
commit fa840e6bbc
2 changed files with 2 additions and 2 deletions

View File

@ -26,6 +26,7 @@ function print_message(){
g.clear(); g.clear();
g.setColor(0xF800); g.setColor(0xF800);
g.drawString("sitting is dangerous!", g.getWidth()/2, g.getHeight()/2); g.drawString("sitting is dangerous!", g.getWidth()/2, g.getHeight()/2);
setTimeout(remind,settings.sitTime * 60000);
} }
//init graphics //init graphics
require("Font8x12").add(Graphics); require("Font8x12").add(Graphics);
@ -34,5 +35,4 @@ g.setFontAlign(0,0);
g.flip(); g.flip();
print_message(); print_message();
setInterval(remind,settings.sitTime * 60000);

View File

@ -7,7 +7,7 @@
// initialize with default settings... // initialize with default settings...
let s = { let s = {
'sitTime' : 20 'sitTime' : 20,
'moveTime' : 1 'moveTime' : 1
}; };
// ...and overwrite them with any saved values // ...and overwrite them with any saved values