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
pull/1603/head
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.02: Add settings menu
0.03: Add ability to repeat last timer

View File

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

View File

@ -2,7 +2,7 @@
"id": "touchtimer",
"name": "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.",
"icon": "app.png",
"tags": "tools",