1
0
Fork 0

automatrically set string position

master
Michael Bengfort 2020-06-02 18:44:27 +02:00
parent e9e9bf941a
commit cd6447b479
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ var bpm=60; // ininital bpm value
var time_diffs = [1000, 1000, 1000]; //array to calculate mean bpm
var tindex=0; //index to iterate through time_diffs
Bangle.setLCDTimeout(undefined); //do not deaktivate display while running this app
const storage = require("Storage");
@ -57,7 +58,7 @@ function updateScreen() {
catch(err) {
}
g.setFont("Vector",40);
g.drawString(Math.floor(bpm)+"bpm", 100, 100);
g.drawString(Math.floor(bpm)+"bpm", g.getWidth()/2, 100);
}