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

View File

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