Update app.js

pull/172/head
Pascal Gollnick 2020-03-27 19:00:12 +01:00 committed by GitHub
parent b40f873108
commit bcdd8c7be1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,7 @@ function writeLineStart(){
g.drawString(">",4,marginTop+line*20);
}
function writeLine(str){
g.clearRect(0,marginTop+line*20,(str.length*15+15),marginTop+20+line*20);
g.clearRect(0,marginTop+line*20,((str.length+1)*15+15),marginTop+20+line*20);
writeLineStart();
g.drawString(str,20,marginTop+line*20);
line++;
@ -51,3 +51,4 @@ Bangle.on('lcdPower',function(on) {
drawAll();
});
var click = setInterval(updateTime, 1000);
setWatch(Bangle.showLauncher, BTN2, {repeat:false,edge:"falling"});