forked from FOSS/BangleApps
change colors and interval time
parent
6e412abba0
commit
dbf57058d0
|
@ -7,16 +7,16 @@ function remind() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function print_message(){
|
function print_message(){
|
||||||
g.setColor(0xF800);
|
g.clear();
|
||||||
|
g.setColor(0x03E0);
|
||||||
g.drawString("sitting is dangerous!", g.getWidth()/2, g.getHeight()/2);
|
g.drawString("sitting is dangerous!", g.getWidth()/2, g.getHeight()/2);
|
||||||
}
|
}
|
||||||
//init graphics
|
//init graphics
|
||||||
g.clear();
|
|
||||||
require("Font8x12").add(Graphics);
|
require("Font8x12").add(Graphics);
|
||||||
g.setFont("8x12",2);
|
g.setFont("8x12",2);
|
||||||
g.setFontAlign(0,0);
|
g.setFontAlign(0,0);
|
||||||
g.flip();
|
g.flip();
|
||||||
|
|
||||||
print_message();
|
print_message();
|
||||||
setInterval(remind,60000);
|
setInterval(remind,1200000);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue