touchtimer: ADD ability to repeat the timer

- By adding the REPEAT value at the end of buzzCount loop it allows for
  finshed to be shown for the full buzzCount before it changes the text
  to REPEAT
master
Brendan Hubble 2022-03-22 09:05:53 +11:00
parent a37c14d26c
commit 5e92ec24df
3 changed files with 10 additions and 2 deletions

View File

@ -1,2 +1,3 @@
0.01: Initial creation of the touch timer app 0.01: Initial creation of the touch timer app
0.02: Add settings menu 0.02: Add settings menu
0.03: Add ability to repeat last timer

View File

@ -141,6 +141,13 @@ var main = () => {
if (buzzCount >= settings.buzzCount) { if (buzzCount >= settings.buzzCount) {
clearInterval(buzzIntervalId); clearInterval(buzzIntervalId);
buzzIntervalId = undefined; buzzIntervalId = undefined;
buttonStartPause.value = "REPEAT";
buttonStartPause.draw();
buttonStartPause.value = "START";
timerCountDown = undefined;
timerEdit.draw();
return; return;
} else { } else {
Bangle.buzz(settings.buzzDuration * 1000, 1); Bangle.buzz(settings.buzzDuration * 1000, 1);

View File

@ -2,7 +2,7 @@
"id": "touchtimer", "id": "touchtimer",
"name": "Touch Timer", "name": "Touch Timer",
"shortName": "Touch Timer", "shortName": "Touch Timer",
"version": "0.02", "version": "0.03",
"description": "Quickly and easily create a timer with touch-only input. The time can be easily set with a number pad.", "description": "Quickly and easily create a timer with touch-only input. The time can be easily set with a number pad.",
"icon": "app.png", "icon": "app.png",
"tags": "tools", "tags": "tools",