forked from FOSS/BangleApps
23 lines
466 B
JavaScript
23 lines
466 B
JavaScript
function remind() {
|
|
Bangle.buzz(1000,1);
|
|
g.clear();
|
|
g.setColor(0xF800);
|
|
g.drawString("MOVE!", g.getWidth()/2, g.getHeight()/2);
|
|
setTimeout(print_message,60000);
|
|
}
|
|
|
|
function print_message(){
|
|
g.setColor(0xF800);
|
|
g.drawString("sitting is dangerous!", g.getWidth()/2, g.getHeight()/2);
|
|
}
|
|
//init graphics
|
|
g.clear();
|
|
require("Font8x12").add(Graphics);
|
|
g.setFont("8x12",2);
|
|
g.setFontAlign(0,0);
|
|
g.flip();
|
|
|
|
print_message();
|
|
setInterval(remind,60000);
|
|
|