You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This provides boot code, a library and tools for alarms and timers.
5
5
6
6
Other apps can use this to provide alarm functionality.
7
7
8
-
App
9
-
---
8
+
## App
9
+
10
+
11
+
The `Alarms & Timers` app allows you to add/modify any running alarms and timers.
12
+
13
+
14
+
### Snooze Menu
10
15
11
-
The **Alarms & Timers** app allows you to add/modify any running alarms and timers.
16
+
With sched version 0.35 or later, when an alarm or timer is triggered, and you have the latest cutting-edge firmware (will be 2v28 when released), you can long press on the snooze button that pops up to go to a snooze menu, for finer control over snooze amounts. If you do not have the latest firmware or use the code below, you will not notice any changes.
12
17
13
-
When an alarm or timer is triggered, and you have the latest cuttingedge firmware (will be 2v28 when released), you can long press on the snooze button that pops up to go to a snooze menu, for finer control over snooze amounts.
18
+
If you want the functionality, but don't want to use cutting-edge firmware, you can upload this code to the bangle from the Web IDE instead, as `2v28_sim.boot.js`:
14
19
15
-
For timers, the last option in the snooze menu is the timer length itself.
20
+
```
21
+
E.showPrompt=(function(message,options) {
22
+
if (!options) options={};
23
+
if (!options.buttons)
24
+
options.buttons = {"Yes":true,"No":false};
25
+
var btns = Object.keys(options.buttons);
26
+
if (btns.length>6) throw new Error(">6 buttons");
27
+
var btnPos;
28
+
function draw(highlightedButton) {
29
+
g.reset().setFontAlign(0,0);
30
+
var R = Bangle.appRect, Y = R.y, W = R.w;
31
+
var title = g.findFont(options.title||"", {w:W-2,wrap:1,max:24});
0 commit comments