switch manual and bpm string-positions

master
Michael Bengfort 2020-05-10 16:48:24 +02:00
parent c69ac747a1
commit 3e90f92e35
1 changed files with 4 additions and 4 deletions

View File

@ -40,12 +40,11 @@ function changecolor() {
} }
function updateScreen() { function updateScreen() {
//g.clear(); g.clearRect(0, 50, 250, 150);
g.clearRect(0, 50, 250, 200);
changecolor(); changecolor();
Bangle.buzz(50, 0.75); Bangle.buzz(50, 0.75);
g.setFont("Vector",48); g.setFont("Vector",48);
g.drawString(Math.floor(bpm)+"bpm", 5, 80); g.drawString(Math.floor(bpm)+"bpm", 5, 60);
} }
Bangle.on('touch', function(button) { Bangle.on('touch', function(button) {
@ -91,7 +90,8 @@ setWatch(() => {
interval = setInterval(updateScreen, 60000 / bpm); interval = setInterval(updateScreen, 60000 / bpm);
g.drawString('Touch the screen to set tempo.\nUse BTN1 to increase, and\nBTN3 to decrease bpm value by 1.', 15, 20); g.clear();
g.drawString('Touch the screen to set tempo.\nUse BTN1 to increase, and\nBTN3 to decrease bpm value by 1.', 15, 150);
Bangle.loadWidgets(); Bangle.loadWidgets();
Bangle.drawWidgets(); Bangle.drawWidgets();