]> git.earman.xyz Git - sensor-watch.git/log
sensor-watch.git
3 years agoMerge pull request #176 from neutralinsomniac/alarm-fix-conditional
Wesley Ellis [Fri, 13 Jan 2023 20:33:16 +0000 (15:33 -0500)]
Merge pull request #176 from neutralinsomniac/alarm-fix-conditional

alarm: fix accidental assignment vs conditional logic

3 years agoalarm: fix accidental assignment vs conditional logic
Jeremy O'Brien [Fri, 13 Jan 2023 19:52:09 +0000 (14:52 -0500)]
alarm: fix accidental assignment vs conditional logic

3 years agoMerge pull request #174 from neutralinsomniac/tarot-fix-compiler-warning
joeycastillo [Thu, 12 Jan 2023 14:21:22 +0000 (09:21 -0500)]
Merge pull request #174 from neutralinsomniac/tarot-fix-compiler-warning

tarot: fix compiler warning

3 years agotarot: fix compiler warning
Jeremy O'Brien [Thu, 12 Jan 2023 13:34:40 +0000 (08:34 -0500)]
tarot: fix compiler warning

3 years agoMerge pull request #172 from neutralinsomniac/add-tarot-face-inversion-note
joeycastillo [Thu, 12 Jan 2023 02:09:48 +0000 (21:09 -0500)]
Merge pull request #172 from neutralinsomniac/add-tarot-face-inversion-note

tarot: add card inversion explanation

3 years agotarot: add card inversion explanation
Jeremy O'Brien [Wed, 11 Jan 2023 23:36:13 +0000 (18:36 -0500)]
tarot: add card inversion explanation

3 years agoMerge pull request #171 from neutralinsomniac/document_tarot_face
joeycastillo [Wed, 11 Jan 2023 21:25:57 +0000 (16:25 -0500)]
Merge pull request #171 from neutralinsomniac/document_tarot_face

add tarot face documentation as per the new template.h

3 years agoInterval timers face (#130)
TheOnePerson [Wed, 11 Jan 2023 20:31:53 +0000 (21:31 +0100)]
Interval timers face (#130)

* buzzer sequences: first draft, does not work on hardware yet (but in simulator)

* buzzer sequences: add changes to movement.c

* buzzer sequences: add demo face to Makefile

* buzzer sequences: fix problem of interrupted sounds. Add logic for repeating sub sequences. Tidy up (move logic to watch_buzzer files, remove buzzer_demo_face)

* buzzer sequences: tidy up even more

* buzzer sequences: disable registering a 32 Hz tick callback for watch faces, so it will be used exclusively by the buzzer sequences functionality

* buzzer sequences: add callback slot functionality to watch_rtc and make watch_buzzer use it. Switch internal buzzer sequences tick frequency to 64 Hz. Revert changes to movement.c

* interval face: add initial version

* interval face: fix theoretical problem in helper function

* buzzer sequences: fix parameter sanity check in watch_rtc code

* buzzer sequences/watch_rtc: optimize calling tick callbacks in RTC_Handler

* buzzer sequences/watch_rtc: fix error in calling callback functions

* buzzer sequences: revert changes to watch_rtc logic. Instead, use TC3 as the source for timing the sound sequences.

* buzzer sequences: fix frequency of callback

* buzzer sequences: integrate changes from PR #162 (set both CCBUF and PERFBUF for correct buzzer tone)

Co-authored-by: joeycastillo <joeycastillo@utexas.edu>
3 years agoPlay sound sequences asynchronously (#122)
TheOnePerson [Wed, 11 Jan 2023 20:26:33 +0000 (21:26 +0100)]
Play sound sequences asynchronously (#122)

* buzzer sequences: first draft, does not work on hardware yet (but in simulator)

* buzzer sequences: add changes to movement.c

* buzzer sequences: add demo face to Makefile

* buzzer sequences: fix problem of interrupted sounds. Add logic for repeating sub sequences. Tidy up (move logic to watch_buzzer files, remove buzzer_demo_face)

* buzzer sequences: tidy up even more

* buzzer sequences: disable registering a 32 Hz tick callback for watch faces, so it will be used exclusively by the buzzer sequences functionality

* buzzer sequences: add callback slot functionality to watch_rtc and make watch_buzzer use it. Switch internal buzzer sequences tick frequency to 64 Hz. Revert changes to movement.c

* buzzer sequences: fix parameter sanity check in watch_rtc code

* buzzer sequences/watch_rtc: optimize calling tick callbacks in RTC_Handler

* buzzer sequences/watch_rtc: fix error in calling callback functions

* buzzer sequences: revert changes to watch_rtc logic. Instead, use TC3 as the source for timing the sound sequences.

* buzzer sequences: fix frequency of callback

* buzzer sequences: integrate changes from PR #162 (set both CCBUF and PERFBUF for correct buzzer tone)

3 years agoAdd quick counting through hours, minutes, etc. to set time face. (#131)
TheOnePerson [Wed, 11 Jan 2023 20:05:43 +0000 (21:05 +0100)]
Add quick counting through hours, minutes, etc. to set time face. (#131)

* set time face: add quick cycling through hours, minutes, etc. and handle February 29th properly

* set time face: add failsafe for "hanging" quick cycle mode

* set time face: get rid of compiler warning

* set time face: Fix typo and indentation errors

3 years agoadd tarot face documentation as per the new template.h
Jeremy O'Brien [Wed, 11 Jan 2023 19:54:52 +0000 (14:54 -0500)]
add tarot face documentation as per the new template.h

3 years agoMerge pull request #169 from neutralinsomniac/tarot-face
joeycastillo [Wed, 11 Jan 2023 19:25:37 +0000 (14:25 -0500)]
Merge pull request #169 from neutralinsomniac/tarot-face

Implement tarot card face

3 years agorevert tweak to 'world' card
joeycastillo [Wed, 11 Jan 2023 18:45:11 +0000 (13:45 -0500)]
revert tweak to 'world' card

3 years agotarot: move comment to where it belongs
Jeremy O'Brien [Wed, 11 Jan 2023 18:33:51 +0000 (13:33 -0500)]
tarot: move comment to where it belongs

3 years agoImplement card flipping and arbitrary # of card draws up to 10
Jeremy O'Brien [Wed, 11 Jan 2023 16:39:54 +0000 (11:39 -0500)]
Implement card flipping and arbitrary # of card draws up to 10

3 years agotarot: tweak to display of 'world' card
joeycastillo [Wed, 11 Jan 2023 17:49:44 +0000 (12:49 -0500)]
tarot: tweak to display of 'world' card

3 years agotweak some arcana for readability
joeycastillo [Wed, 11 Jan 2023 17:15:42 +0000 (12:15 -0500)]
tweak some arcana for readability

3 years agoMerge pull request #170 from strickinato/add-doc-to-template
joeycastillo [Wed, 11 Jan 2023 16:44:44 +0000 (11:44 -0500)]
Merge pull request #170 from strickinato/add-doc-to-template

Add documentation to x_face.h template to encourage more docs

3 years agoMerge pull request #168 from neutralinsomniac/remove-unnecessary-conditionals
joeycastillo [Wed, 11 Jan 2023 16:42:52 +0000 (11:42 -0500)]
Merge pull request #168 from neutralinsomniac/remove-unnecessary-conditionals

Remove more unnecessary conditionals

3 years agoAdd documentation to read me to encourage watch face designers
Aaron Strick [Wed, 11 Jan 2023 05:58:43 +0000 (21:58 -0800)]
Add documentation to read me to encourage watch face designers

3 years agoImplement tarot card face
Jeremy O'Brien [Wed, 11 Jan 2023 03:59:17 +0000 (22:59 -0500)]
Implement tarot card face

3 years agoRemove more unnecessary conditionals
Jeremy O'Brien [Wed, 11 Jan 2023 02:02:47 +0000 (21:02 -0500)]
Remove more unnecessary conditionals

3 years agoNew watch face: Tally counter (tally_face) (#160)
Andrew Mike [Tue, 10 Jan 2023 22:02:41 +0000 (17:02 -0500)]
New watch face: Tally counter (tally_face) (#160)

* Add tally face

* Fix copyright block to reflect real author

* Fix indentation

* More style editing, edited comments

* silence warning in tally_face

Co-authored-by: Andrew Mike <andrew@7thmagic.net>
Co-authored-by: joeycastillo <joeycastillo@utexas.edu>
3 years agoPrecision watch update (#152)
Mikhail Svarichevsky [Tue, 10 Jan 2023 21:56:26 +0000 (00:56 +0300)]
Precision watch update (#152)

* Intermediate changes

* Databank working

* Main commit for precision timing

First version where all functions are supposed to be working

* Fix math error in nanosec. File storage for location.

* Remove obsolete comments

* Missing page name on pages rotation - thanks to jeremy

* Delete file.diff

* Cleanup+tempchart

1) finetune must always reset last calibration time when doing non-0 time correction, even when you are not applying ppm correction.
2) Dithers over 31 periods not 10, more resolution with still no risk of overflow
3) Minute-boundery finetune fix. I also just got this 1-minute error after finetune...
4) Write frequency calibration value in 1 operation rather than 2. All RTC writes must be single operations to avoid partially correct data.
5) Some code cleanup
6) Tempchart face is added for temperature statistics

* Update set_time_hackwatch_face.c

* Math error in display code of finetune, allow to update correction time even without correction - by long alarm press

* Increase reliability of stopping & starting RTC timer

As it's quite dangerous operation

* hackwatch - days adjust down fix by long alarm

* unify style

* More comments & last style change

* Simulator support

RTC operations (watch_rtc_enable and watch_rtc_freqcorr_write) are in common libs.

* Unicode fix

* Crystal aging is now adjustable (AA page in nanosec - annual aging, ppm/year)

Aging is baked into fixed offset every time finetune is performed, as it relies on last adjustment time.

* Blink on non-0 page every minute in finetune to measure clock error

* Rolling back private changes

* Cleanup

* Cleanup

* Quality of life changes in nanosec

1. Does not calculate & apply ppm correction if less than 6 hours passed since previous adjustment (as it gives very high correction values which are unrealistic and unhelpful)
2. Idle timeout resets to face 0 only if no correction was made

* unify style

* Fix low-power errors in nanosec infrastructure, faster display in finetune

* Merge fix

* unify style

Co-authored-by: Jeremy O'Brien <neutral@fastmail.com>
Co-authored-by: joeycastillo <joeycastillo@utexas.edu>
3 years agoAdd Tachymeter face (#165)
Raymundo Cassani [Tue, 10 Jan 2023 21:43:04 +0000 (16:43 -0500)]
Add Tachymeter face (#165)

* Create template for tachymeter

* Basic working tachymeter

* Improve UI for running and results

* Allow editing distance

* Alarm long-press to enter and exit editing mode

* Improve light button behaviour

* Set distance digit wise.

* Use 250ms resolution for total time

* Improve comments

* Bugfix: Show distance when running and face becomes active

* Update `%d` to `%lu` in `sprintf` call for `uint32_t`

* Ignore Alarm button (Up and Long-press) when showing results

* Improve GUI when running and face gets activated

* Change speed indicator from `/H` to `/h`

* silence warnings in tachymeter face

Co-authored-by: joeycastillo <joeycastillo@utexas.edu>
3 years agofixes 161: sets both CCBUF and PERFBUF for correct buzzer tone (#162)
gugray [Tue, 10 Jan 2023 21:33:29 +0000 (22:33 +0100)]
fixes 161: sets both CCBUF and PERFBUF for correct buzzer tone (#162)

3 years agoAdd stock stopwatch face (#140)
TheOnePerson [Tue, 10 Jan 2023 21:31:32 +0000 (22:31 +0100)]
Add stock stopwatch face (#140)

* buzzer sequences: first draft, does not work on hardware yet (but in simulator)

* buzzer sequences: add changes to movement.c

* buzzer sequences: add demo face to Makefile

* buzzer sequences: fix problem of interrupted sounds. Add logic for repeating sub sequences. Tidy up (move logic to watch_buzzer files, remove buzzer_demo_face)

* buzzer sequences: tidy up even more

* buzzer sequences: disable registering a 32 Hz tick callback for watch faces, so it will be used exclusively by the buzzer sequences functionality

* buzzer sequences: add callback slot functionality to watch_rtc and make watch_buzzer use it. Switch internal buzzer sequences tick frequency to 64 Hz. Revert changes to movement.c

* buzzer sequences: fix parameter sanity check in watch_rtc code

* stock stopwatch: first fully functional implementation

* stock stopwatch: fix typo in comment

* stock stopwatch: handle resuming from deep sleep mode properly

* buzzer sequences/watch_rtc: optimize calling tick callbacks in RTC_Handler

* buzzer sequences/watch_rtc: fix error in calling callback functions

* stock stopwatch: implement workaround for sleep mode

* stock stopwatch: merge current main into stock-stopwatch

* stock stopwatch: use TC counters as source for callbacks

* stock-stopwatch: revert unnecessary changes to watch_buzzer

Co-authored-by: joeycastillo <joeycastillo@utexas.edu>
3 years agoRPN Calculator face (#112)
James Haggerty [Tue, 10 Jan 2023 21:15:00 +0000 (08:15 +1100)]
RPN Calculator face (#112)

* Calculator face with guess a number

* Add more functions, cleanup, and blinking

* Display operations better in the first location

* Clean up stack behaviour

Add empty stack behaviour, check stack bounds, add stack operations.

Also, make 'mode' always work to switch through faces on entering calculator
(i.e. by defaulting to OPERATION rather than NUMBER).

Some edge cases.

* Tweak negative rounding behaviour; add basic doco

* Add copyright name.

* Flip ordering of binary operations

* Fix compiler warnings

* Remove watch_private_display hackery and give face a better name

Also, slightly clearer documentation and a dupe function.

3 years agoMerge pull request #119 from neutralinsomniac/add_hours_to_countdown_face
joeycastillo [Tue, 10 Jan 2023 21:14:20 +0000 (16:14 -0500)]
Merge pull request #119 from neutralinsomniac/add_hours_to_countdown_face

Add hours support to the countdown face

3 years agoshow colon after hours in countdown face
joeycastillo [Tue, 10 Jan 2023 21:12:15 +0000 (16:12 -0500)]
show colon after hours in countdown face

3 years agoMerge pull request #159 from neutralinsomniac/remove-unnecessary-conditional
Wesley Ellis [Sun, 8 Jan 2023 17:53:16 +0000 (12:53 -0500)]
Merge pull request #159 from neutralinsomniac/remove-unnecessary-conditional

remove unnecessary conditional in simple clock face

3 years agoremove unnecessary conditional in simple clock face
Jeremy O'Brien [Thu, 5 Jan 2023 11:50:29 +0000 (06:50 -0500)]
remove unnecessary conditional in simple clock face

3 years agoMerge pull request #158 from neutralinsomniac/fix-sailing-face-compiler-warnings
joeycastillo [Wed, 4 Jan 2023 15:03:23 +0000 (09:03 -0600)]
Merge pull request #158 from neutralinsomniac/fix-sailing-face-compiler-warnings

fix compiler warnings in sailing face

3 years agofix compiler warnings in sailing face
Jeremy O'Brien [Wed, 4 Jan 2023 14:47:26 +0000 (09:47 -0500)]
fix compiler warnings in sailing face

3 years agonever disable buzzer output
joeycastillo [Wed, 4 Jan 2023 03:24:14 +0000 (21:24 -0600)]
never disable buzzer output

3 years agoMerge pull request #106 from niclashoyer/sailing
joeycastillo [Sat, 31 Dec 2022 17:04:55 +0000 (11:04 -0600)]
Merge pull request #106 from niclashoyer/sailing

Add sailing watch face

3 years agoMerge pull request #126 from ShogoOkamoto/main
joeycastillo [Wed, 14 Dec 2022 17:08:30 +0000 (11:08 -0600)]
Merge pull request #126 from ShogoOkamoto/main

append beep sound to counter_face

3 years agoMerge pull request #149 from slim/main
joeycastillo [Wed, 14 Dec 2022 15:40:22 +0000 (09:40 -0600)]
Merge pull request #149 from slim/main

Week number watch face

3 years agoMerge pull request #144 from kyleboyle/skin
joeycastillo [Tue, 6 Dec 2022 05:18:26 +0000 (23:18 -0600)]
Merge pull request #144 from kyleboyle/skin

Adds simulator watch skin toggle for model A158WEA-9

3 years agoMerge branch 'main' of github.com:joeycastillo/Sensor-Watch into main
Slim [Fri, 2 Dec 2022 18:53:56 +0000 (19:53 +0100)]
Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into main

3 years agoWeeknumber watch face
Slim [Fri, 2 Dec 2022 18:45:53 +0000 (19:45 +0100)]
Weeknumber watch face

Same as simple clock, but has iso 8601 week number instead of seconds counter

3 years agonew standard firmware
joeycastillo [Tue, 29 Nov 2022 20:51:26 +0000 (14:51 -0600)]
new standard firmware

3 years agostopwatch: slow down sleep animation
joeycastillo [Tue, 29 Nov 2022 19:40:03 +0000 (13:40 -0600)]
stopwatch: slow down sleep animation

3 years agosunrise/set: return home if no location set
joeycastillo [Tue, 29 Nov 2022 19:39:14 +0000 (13:39 -0600)]
sunrise/set: return home if no location set

3 years agonew backer firmware with original lineup
joeycastillo [Tue, 29 Nov 2022 16:01:47 +0000 (10:01 -0600)]
new backer firmware with original lineup

3 years agodeep space now: use standard time
joeycastillo [Mon, 28 Nov 2022 17:44:12 +0000 (11:44 -0600)]
deep space now: use standard time

3 years agoallow setting default LED colors in movement_config
joeycastillo [Mon, 28 Nov 2022 17:43:51 +0000 (11:43 -0600)]
allow setting default LED colors in movement_config

3 years agotime set: allow setting year through 2050
joeycastillo [Mon, 28 Nov 2022 07:28:02 +0000 (01:28 -0600)]
time set: allow setting year through 2050

3 years agokeep stopwatch awake while running and on screen
joeycastillo [Mon, 28 Nov 2022 06:58:25 +0000 (00:58 -0600)]
keep stopwatch awake while running and on screen

3 years agoaddress sunrise/set rounding in last 30 seconds of hour (fixes #146)
joeycastillo [Mon, 28 Nov 2022 06:40:08 +0000 (00:40 -0600)]
address sunrise/set rounding in last 30 seconds of hour (fixes #146)

3 years agofix sunrise/sunset in last 30 seconds of the hour
joeycastillo [Sun, 27 Nov 2022 23:02:30 +0000 (17:02 -0600)]
fix sunrise/sunset in last 30 seconds of the hour

3 years agomake stopwatch beep when started/stopped
joeycastillo [Sun, 27 Nov 2022 22:52:25 +0000 (16:52 -0600)]
make stopwatch beep when started/stopped

3 years agoreplace temperature sensor with stopwatch
joeycastillo [Sun, 27 Nov 2022 15:57:25 +0000 (09:57 -0600)]
replace temperature sensor with stopwatch

3 years agoAdds watch skin toggle to for model A158WEA-9 should one be feeling classy
Kyle Boyle [Thu, 24 Nov 2022 22:37:19 +0000 (18:37 -0400)]
Adds watch skin toggle to for model A158WEA-9 should one be feeling classy

3 years agoMerge pull request #134 from abhignay/main
joeycastillo [Tue, 22 Nov 2022 14:48:09 +0000 (08:48 -0600)]
Merge pull request #134 from abhignay/main

Add Sensor board with BMI270 IMU

3 years agoMerge pull request #138 from darigovresearch/main
joeycastillo [Tue, 22 Nov 2022 14:45:53 +0000 (08:45 -0600)]
Merge pull request #138 from darigovresearch/main

docs: Adds License to readme

3 years agoMerge pull request #141 from TomHodson/fix_simulated_led_color
joeycastillo [Tue, 22 Nov 2022 14:43:12 +0000 (08:43 -0600)]
Merge pull request #141 from TomHodson/fix_simulated_led_color

Add support for bicolor led in the simulator

3 years agoMerge pull request #118 from wryun/separate-emscripten-build-dir
joeycastillo [Tue, 22 Nov 2022 14:37:33 +0000 (08:37 -0600)]
Merge pull request #118 from wryun/separate-emscripten-build-dir

Separate emscripten build directory

3 years agoremove errant console.log
Tom Hodson [Tue, 22 Nov 2022 13:39:46 +0000 (14:39 +0100)]
remove errant console.log

3 years agoWIP: Add support for bicolor led in the simulator
Tom Hodson [Tue, 22 Nov 2022 13:30:24 +0000 (14:30 +0100)]
WIP: Add support for bicolor led in the simulator

I noticed that the bicolor led isn't supported in the simulator. Here is a quick mockup of how I would add support for it.

I added an SVG filter to the #light rectangle in the SVG which lets us multiply the colours by a matrix in code. I then insert values so that the original green colour gets mixed into the combination of red and green requested by `watch_set_led_color`

# Testing
So far I've only tested this with the standard firmware build but it seems to work.

# Possible issues
I wasn't 100% sure what to do when red + green > 255, current behaviour is that it gets clamped to 255 in the simulator.

3 years agodocs: Adds License to readme
Darigov Research [Sat, 19 Nov 2022 19:39:04 +0000 (19:39 +0000)]
docs: Adds License to readme

Would resolve https://github.com/joeycastillo/Sensor-Watch/issues/137 if merged

3 years agoMerge pull request #133 from wryun/set-indicator-on-reactivate
joeycastillo [Tue, 15 Nov 2022 17:05:23 +0000 (11:05 -0600)]
Merge pull request #133 from wryun/set-indicator-on-reactivate

Set bell indicator on reactivating countdown/tomato faces

3 years agoadded new sensor-board with the BMI270 IMU
moonman [Tue, 15 Nov 2022 16:13:29 +0000 (21:43 +0530)]
added new sensor-board with the BMI270 IMU

Added files for a sensor board with the BMI270 IMU, a low-power IMU with pedometer/watch-specific features

3 years agoSet bell indicator on reactivating countdown/tomato faces
James Haggerty [Tue, 15 Nov 2022 09:32:53 +0000 (20:32 +1100)]
Set bell indicator on reactivating countdown/tomato faces

If you moved away and back to these faces, you'd lose the indicator. Not that the indicator here
seems very valuable, since it's not displayed on simple_clock_face, but at least
this makes things more consistent.

3 years agoappend beep sound to counter_face
Shogo Okamoto [Tue, 8 Nov 2022 13:39:02 +0000 (22:39 +0900)]
append beep sound to counter_face

3 years agoMerge pull request #120 from TheOnePerson/alarm-face-fix-24h-check
joeycastillo [Fri, 4 Nov 2022 00:29:31 +0000 (19:29 -0500)]
Merge pull request #120 from TheOnePerson/alarm-face-fix-24h-check

alarm-face: fix occasional crash (while checking for active alarms)

3 years agoalarm-face: fix occasional crash on checking for active alarms, fix 0 vs. 12 h in...
TheOnePerson [Thu, 3 Nov 2022 21:32:20 +0000 (22:32 +0100)]
alarm-face: fix occasional crash on checking for active alarms, fix 0 vs. 12 h in am/pm mode

3 years agoAdd .gitignore for build-sim
James Haggerty [Wed, 2 Nov 2022 22:32:58 +0000 (09:32 +1100)]
Add .gitignore for build-sim

3 years agoAdd hours support to the countdown face
Jeremy O'Brien [Wed, 2 Nov 2022 16:22:34 +0000 (12:22 -0400)]
Add hours support to the countdown face

3 years agoFix up build.
James Haggerty [Tue, 1 Nov 2022 21:28:03 +0000 (08:28 +1100)]
Fix up build.

3 years agoSeparate emscripten build directory
James Haggerty [Tue, 1 Nov 2022 19:18:23 +0000 (06:18 +1100)]
Separate emscripten build directory

This avoids the need to 'make clean' before you do a simulator build
(or vice-versa).

3 years agoMake the TOTP face use the filesystem for secret storage (#95)
James Haggerty [Tue, 1 Nov 2022 06:08:05 +0000 (17:08 +1100)]
Make the TOTP face use the filesystem for secret storage (#95)

* TOTP using filesystem

* Filesystem: ability to read files line by line

3 years agoMerge pull request #114 from TheOnePerson/alarm-face-indicator-24h
joeycastillo [Mon, 31 Oct 2022 06:09:13 +0000 (01:09 -0500)]
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

3 years agoMerge pull request #115 from neutralinsomniac/use_movement_play_alarm_in_countdown_face
joeycastillo [Mon, 31 Oct 2022 06:06:08 +0000 (01:06 -0500)]
Merge pull request #115 from neutralinsomniac/use_movement_play_alarm_in_countdown_face

Make countdown face use movement_play_alarm() instead of movement_play_signal()

3 years agoMake countdown face use movement_play_alarm() instead of movement_play_signal()
Jeremy O'Brien [Mon, 31 Oct 2022 00:35:43 +0000 (20:35 -0400)]
Make countdown face use movement_play_alarm() instead of movement_play_signal()

3 years agoalarm-face: make indicator show active alarms in 24h time range and implement UI...
TheOnePerson [Sun, 30 Oct 2022 08:32:20 +0000 (09:32 +0100)]
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

3 years agoMerge pull request #109 from TheOnePerson/auto-fire-long-press
joeycastillo [Sat, 29 Oct 2022 23:16:29 +0000 (18:16 -0500)]
Merge pull request #109 from TheOnePerson/auto-fire-long-press

Make movement auto fire long press event

3 years agomake pulsometer face use new EVENT_ALARM_LONG_UP
joeycastillo [Sat, 29 Oct 2022 23:09:16 +0000 (18:09 -0500)]
make pulsometer face use new EVENT_ALARM_LONG_UP

3 years agoMerge pull request #110 from wryun/fix-makefile-parallelism-linux
joeycastillo [Sat, 29 Oct 2022 22:49:12 +0000 (17:49 -0500)]
Merge pull request #110 from wryun/fix-makefile-parallelism-linux

Fix Linux Makefile parallelism

3 years agoMake countdown face reset to 0 (#90)
James Haggerty [Sat, 29 Oct 2022 22:01:05 +0000 (09:01 +1100)]
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

3 years agoMerge branch 'main' into auto-fire-long-press
TheOnePerson [Wed, 26 Oct 2022 04:43:47 +0000 (06:43 +0200)]
Merge branch 'main' into auto-fire-long-press

3 years agoAdd an Alarm face to movement (#96)
TheOnePerson [Wed, 26 Oct 2022 02:57:53 +0000 (04:57 +0200)]
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>
3 years agomovement: update comments regarding button events
TheOnePerson [Tue, 25 Oct 2022 19:42:29 +0000 (21:42 +0200)]
movement: update comments regarding button events

3 years agoalarm-face: correct am/pm indication and implement some minor tweaks.
TheOnePerson [Tue, 25 Oct 2022 19:28:06 +0000 (21:28 +0200)]
alarm-face: correct am/pm indication and implement some minor tweaks.

3 years agoFix Linux Makefile parallelism
James Haggerty [Mon, 24 Oct 2022 22:24:54 +0000 (09:24 +1100)]
Fix Linux Makefile parallelism

Makefile != bourne shell, I think.

At least on my systems, this was causing a raw -j, which meant
that make had no restriction on its parallelism
(i.e. tried to build everything at once).

3 years agoMerge pull request #103 from wryun/long-press-home-to-settings
joeycastillo [Sun, 23 Oct 2022 20:07:35 +0000 (15:07 -0500)]
Merge pull request #103 from wryun/long-press-home-to-settings

Long press of mode on home screen goes to settings

3 years agomake this an if/then to please emscripten
joeycastillo [Sun, 23 Oct 2022 20:05:28 +0000 (15:05 -0500)]
make this an if/then to please emscripten

3 years agodisable settings hiding by default
joeycastillo [Sun, 23 Oct 2022 19:59:03 +0000 (14:59 -0500)]
disable settings hiding by default

3 years agoalarm face: adjust quick cycling logic to new movement behavior regarding long press...
TheOnePerson [Sun, 23 Oct 2022 11:08:22 +0000 (13:08 +0200)]
alarm face: adjust quick cycling logic to new movement behavior regarding long press event

3 years agoMovement: implement auto firing of long press events and introduce long up event...
TheOnePerson [Sun, 23 Oct 2022 11:07:32 +0000 (13:07 +0200)]
Movement: implement auto firing of long press events and introduce long up event. (Also re-implement alarm_enabled and alarm_note)

3 years agoadd sailing watch face
Niclas Hoyer [Thu, 20 Oct 2022 23:22:30 +0000 (01:22 +0200)]
add sailing watch face

3 years agoMerge pull request #105 from niclashoyer/fix_schedule
joeycastillo [Sat, 22 Oct 2022 18:22:46 +0000 (13:22 -0500)]
Merge pull request #105 from niclashoyer/fix_schedule

Fix scheduled tasks scheduling another task

3 years agoallow watch faces to schedule tasks from background
joeycastillo [Sat, 22 Oct 2022 18:16:46 +0000 (13:16 -0500)]
allow watch faces to schedule tasks from background

3 years agofix scheduled tasks scheduling another task
Niclas Hoyer [Thu, 20 Oct 2022 23:10:12 +0000 (01:10 +0200)]
fix scheduled tasks scheduling another task

3 years agoAdds a rate meter watchface (#101)
David Singleton [Wed, 19 Oct 2022 04:30:05 +0000 (21:30 -0700)]
Adds a rate meter watchface (#101)

3 years agoLong press of mode on home screen goes to settings
James Haggerty [Tue, 18 Oct 2022 23:24:02 +0000 (10:24 +1100)]
Long press of mode on home screen goes to settings

This also changes the default rotation so you don't see the settings
screens.

3 years agoMerge pull request #94 from wryun/long-press-home-default
joeycastillo [Sat, 15 Oct 2022 13:52:34 +0000 (08:52 -0500)]
Merge pull request #94 from wryun/long-press-home-default

Long press mode button to return to first watch face + fix lag when watch face changes

3 years agouse watch_face_changed property
joeycastillo [Wed, 12 Oct 2022 05:20:11 +0000 (00:20 -0500)]
use watch_face_changed property

3 years agodocument return value of watch_face_loop
joeycastillo [Wed, 12 Oct 2022 04:53:02 +0000 (23:53 -0500)]
document return value of watch_face_loop

3 years agono need to set this (set in movement_move_to_face)
joeycastillo [Wed, 12 Oct 2022 04:40:19 +0000 (23:40 -0500)]
no need to set this (set in movement_move_to_face)