674 Commits

Author SHA1 Message Date
TheOnePerson
3c5ac1ee16 alarm-face: fix occasional crash on checking for active alarms, fix 0 vs. 12 h in am/pm mode 2022-11-03 22:32:20 +01:00
Jeremy O'Brien
9d3602220a Add hours support to the countdown face 2022-11-02 12:22:34 -04:00
James Haggerty
ad6e919107 Separate emscripten build directory
This avoids the need to 'make clean' before you do a simulator build
(or vice-versa).
2022-11-02 06:18:34 +11:00
James Haggerty
b7a461d280
Make the TOTP face use the filesystem for secret storage (#95)
* TOTP using filesystem

* Filesystem: ability to read files line by line
2022-11-01 01:08:05 -05:00
joeycastillo
54495d2d29
Merge pull request #114 from TheOnePerson/alarm-face-indicator-24h
Alarm face: make active alarm indicator show up only when there is an alarm set within the next 24 h
2022-10-31 01:09:13 -05:00
Jeremy O'Brien
0cef0b0ce2 Make countdown face use movement_play_alarm() instead of movement_play_signal() 2022-10-30 20:35:43 -04:00
TheOnePerson
27111c2d51 alarm-face: make indicator show active alarms in 24h time range and implement UI tweak
- switch indicators: use signal indicator instead of bell indicator
- make indicator show up only when there is an active alarm in the next 24 h
- Implement "hidden" UI tweak: extra long press of the alarm button in normal mode jumps back to alarm no. 1
- update comments to reflect latest changes
2022-10-30 09:32:20 +01:00
joeycastillo
09f1d02330
Merge pull request #109 from TheOnePerson/auto-fire-long-press
Make movement auto fire long press event
2022-10-29 18:16:29 -05:00
joeycastillo
501d3f8447 make pulsometer face use new EVENT_ALARM_LONG_UP 2022-10-29 18:09:16 -05:00
James Haggerty
d994ce8b48
Make countdown face reset to 0 (#90)
* Make countdown face reset to 0

It was annoying to have countdowns less than DEFAULT_MINUTES.
Admittedly, this does make DEFAULT_MINUTES fairly useless, since
we only ever see it the first time...

* Undo accidental change to movement_config.h
2022-10-29 17:01:05 -05:00
TheOnePerson
cb678d735a
Merge branch 'main' into auto-fire-long-press 2022-10-26 06:43:47 +02:00
TheOnePerson
cb69a2c181
Add an Alarm face to movement (#96)
* Add movement_play_alarm_beeps() to movement.c and make alarm sounds customizable. Add alarm indicator to simple watch face.

* Add alarm face

* alarm_face: fix problem with disabling alarms for 00:00.

* Fix typos in comments and get rid of of unused variable warning

* remove unnecessary constant

* simple_clock_face: fix disappearing chime indicator after face switch, enable alarm indicator updates in app loop (for one-time alarms).
movement: handle situations where watch is in sleep mode and chimes fire off at the same time as alarms properly.

* alarm_face: tweak process of displaying things on the lcd. Add extra long and extra short alarms. Increase number of alarm slots to 16.

* alarm face: fix alarms playing one beeping round more than set.

* alarm face: add proper quick cycling of hour and minute setting

* alarm-face: correct am/pm indication and some minor tweaks. Reset movement_config.h to current main branch. simple-watch-face: Remove unnecessary check and swap indicators (alarm / hourly chime)

* alarm-face: reverse commit parts from another branch (accidentially commited logic depending on movement firmware auto firing the long press event)

Co-authored-by: joeycastillo <joeycastillo@utexas.edu>
2022-10-25 21:57:53 -05:00
TheOnePerson
17cd90e72f movement: update comments regarding button events 2022-10-25 21:42:29 +02:00
TheOnePerson
6a8269629d alarm-face: correct am/pm indication and implement some minor tweaks. 2022-10-25 21:28:06 +02:00
joeycastillo
894d3615e9
Merge pull request #103 from wryun/long-press-home-to-settings
Long press of mode on home screen goes to settings
2022-10-23 15:07:35 -05:00
joeycastillo
5c1e717034 make this an if/then to please emscripten 2022-10-23 15:05:28 -05:00
joeycastillo
46ac8defdc disable settings hiding by default 2022-10-23 14:59:57 -05:00
TheOnePerson
cdd9f737e6 alarm face: adjust quick cycling logic to new movement behavior regarding long press event 2022-10-23 13:08:22 +02:00
TheOnePerson
1a80003775 Movement: implement auto firing of long press events and introduce long up event. (Also re-implement alarm_enabled and alarm_note) 2022-10-23 13:07:32 +02:00
Niclas Hoyer
732a1caffe add sailing watch face 2022-10-23 00:27:32 +02:00
joeycastillo
b56c60868e allow watch faces to schedule tasks from background 2022-10-22 13:16:46 -05:00
Niclas Hoyer
86f34b3653 fix scheduled tasks scheduling another task 2022-10-21 01:10:12 +02:00
David Singleton
dfb928b9d6
Adds a rate meter watchface (#101) 2022-10-18 23:30:05 -05:00
James Haggerty
b51f7b6f36 Long press of mode on home screen goes to settings
This also changes the default rotation so you don't see the settings
screens.
2022-10-19 10:30:59 +11:00
joeycastillo
1bb656db91 use watch_face_changed property 2022-10-12 00:20:11 -05:00
joeycastillo
f89cecc56a document return value of watch_face_loop 2022-10-11 23:53:02 -05:00
joeycastillo
957f97ffad no need to set this (set in movement_move_to_face) 2022-10-11 23:40:19 -05:00
joeycastillo
4de51740fb don't sleep on watch face change 2022-10-11 23:14:59 -05:00
James Haggerty
79ff361f06 Make long press mode go back to face 0 instead of next face 2022-10-12 13:35:08 +11:00
Joey Castillo
95f2f25ee6 implement stubs to make simulator build happy 2022-10-09 22:58:42 -05:00
Joey Castillo
48160e8a47 restore default watch faces (oops) 2022-10-09 22:54:36 -05:00
Joey Castillo
5bb058f585 add watch face for frequency correction and measurement 2022-10-09 22:50:31 -05:00
Jack Bond-Preston
8b3c02ace5
add support for multiple TOTP keys 2022-08-29 01:28:19 +01:00
Joey Castillo
bcd3b66684 Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into lfs 2022-08-02 08:17:26 -06:00
joeycastillo
6d87f5a626
Merge pull request #79 from jackbondpreston/main
movement: fix movement_request_wake() prototype
2022-07-25 12:06:05 -04:00
joshber
f120d66a98
Wake Face (#77)
Co-authored-by: Josh Berson <low.note0488@fastmail.com>
2022-07-25 11:57:12 -04:00
Jack Bond-Preston
b07b548681 movement: fix movement_request_wake() prototype
This function has `void` args, currently it can throw a compiler warning
2022-07-25 15:17:02 +01:00
Joey Castillo
b234db74fe movement: wake programmatically from background and play alarm 2022-07-17 00:23:38 -05:00
Spencer Bywater
6ed757af2b
Adjust probability watch face timeout/LE behavior (#72)
Display SLEEP instead of timing out
2022-05-22 19:42:37 -04:00
Spencer Bywater
96aaa47c8e
Probability watch face (#69)
* Initial work on probability watch face

* Complete probability watch face

* Restore default movement_config

* PR feedback: PR watch face title, use arc4random, clean up warnings

* Use rand instead of arc4random when building on emulator

* Accidentally overwrote movement_config
2022-05-18 11:11:34 -04:00
Joey Castillo
3a9dd0df08 unify on 32-bit signed lengths 2022-05-09 21:33:45 -04:00
Joey Castillo
8455bfc9a5 filesystem: only throw errors for negative error codes 2022-05-09 13:17:51 -04:00
Joey Castillo
e71a70d231 add file browser to movement, remove old app 2022-05-09 13:05:37 -04:00
Joey Castillo
22b1ac0283 simulator: add USB serial input field 2022-05-09 13:00:15 -04:00
Joey Castillo
21ee056e26 first pass at filesystem in movement 2022-05-09 12:14:42 -04:00
Joey Castillo
91b436237a fix warning re: buffer overrun 2022-05-09 12:03:24 -04:00
Joey Castillo
cd40573535 Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into motion-express 2022-05-02 18:39:45 -05:00
Joey Castillo
e36af0e5a3 movement: only run custom commands at first launch 2022-04-21 15:37:12 -04:00
Joey Castillo
c78b8d4570 deep space firmware: show voyager 1 mission day 2022-04-21 14:33:59 -04:00
Joey Castillo
cedfe72ced deep space firmware: prepopulate time zones 2022-04-21 13:40:58 -04:00