Skip to content

Commit 76f4b0a

Browse files
author
thyttan
committed
ateatimer: add buzz when starting and resetting timer
1 parent b2736ef commit 76f4b0a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

apps/ateatimer/ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
0.01: First release
22
0.02: Fix icon, utilize sched, show running timer on app relaunch
3-
0.03: Flash time in green when starting the timer.
3+
0.03: Flash time in green when starting the timer
4+
0.04: Buzz when starting and resetting timer

apps/ateatimer/app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ function startTimer() {
7979
drawTime();
8080
g.reset();
8181

82+
Bangle.buzz(50);
83+
8284
// Start the secondary timer to update the display
8385
updateIntervalID = setInterval(updateDisplay, 1000);
8486
}
@@ -104,6 +106,7 @@ function resetTimer() {
104106
timerRunning = false;
105107
timeRemaining = timerDuration;
106108
drawTime();
109+
Bangle.buzz(75);
107110
}
108111

109112
function adjustTime(amount) {

apps/ateatimer/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "A Tea Timer",
33
"author": "vovcia-clug",
44
"icon": "app.png",
5-
"version":"0.03",
5+
"version":"0.04",
66
"description": "Simple app for setting timers for tea. Touch up and down to change time, and time or button to start counting. When timer is running, button will stop timer and reset counter to last used value.",
77
"tags": "timer",
88
"supports": ["BANGLEJS2"],

0 commit comments

Comments
 (0)