Replies: 2 comments 1 reply
-
I’ve been thinking along similar lines. It might entail building with multiple copies of the alarm face so that they can each bind a wants_background_task() handler. Here’s an alarm face I roughed in today (from my clone of the repo): https://bitbucket.org/thylacine/sensor-watch_clone/src/main/movement/watch_faces/complication/wake_face.c I’ve used wants_background_task() to ensure the event will trigger even if the runtime is in sleep mode. A further concern is that for accessibility I’d like to offer an LED signal as well as piezo. At the moment I’m spawning a thread that turns on the LED, goes to sleep, and turns it off some seconds later — so that I’m not blocking the event loop thread. Not sure if this approach is compatible with this module, need to test it in the emulator. |
Beta Was this translation helpful? Give feedback.
-
Nice, your approach sounds good in practice, although I wonder if it's
better just to bring the alarm watch face to the foreground (I think
there's a method for that)
I'd suggest you put up a PR for a basic alarm first, then multiple alarms
(maybe multiple copies of the watch face? I think that's been done for the
days since face before)
…On Sun., Jul. 3, 2022, 12:56 joshber, ***@***.***> wrote:
I’ve been thinking along similar lines. It might entail building with
multiple copies of the alarm face so that they can each bind a
wants_background_task() handler.
Here’s an alarm face I roughed in today (from my clone of the repo):
https://bitbucket.org/thylacine/sensor-watch_clone/src/main/movement/watch_faces/complication/wake_face.c
https://bitbucket.org/thylacine/sensor-watch_clone/src/main/movement/watch_faces/complication/wake_face.h
I’ve used wants_background_task() to ensure the event will trigger even if
the runtime is in sleep mode. A further concern is that for accessibility
I’d like to offer an LED signal as well as piezo. At the moment I’m
spawning a thread that turns on the LED, goes to sleep, and turns it off
some seconds later — so that I’m not blocking the event loop thread. Not
sure if this approach is compatible with this module, need to test it in
the emulator.
—
Reply to this email directly, view it on GitHub
<#75 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACYSEJ6BHZ6YDEGKAQZBVLVSHA4PANCNFSM52EYH6CA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
-
I've always wanted to have the option to create multiple alarms in my Casio F-91W. Is this possible with this board? If so how many? Would be great if I could set ~5 different alarms.
Beta Was this translation helpful? Give feedback.
All reactions