Commit Graph

118 Commits

Author SHA1 Message Date
Alessandro Genova f534e7c202 Fix bug that was causing notes in a sequence to play too long 2026-01-02 20:07:56 -05:00
Alessandro Genova 04276c1999 Improve watch_tcc to decouple leds and buzzer as much as allowed
As a positive side effect, the led will stop emitting the faintiest
of blinks when the buzzer starts playing.
2026-01-02 20:07:56 -05:00
Alessandro Genova bf9d89106f Fix LED flickering while the buzzer is playing 2026-01-02 20:07:56 -05:00
Alessandro Genova 3caef587df Play an arbitrary stream on the buzzer without blocking 2026-01-02 20:07:56 -05:00
Alessandro Genova 42fdad78d5 Add more theoretical checks to ensure we don't miss out on any comp timers
Even without this "fix" the watch seems to be extremely stable and haven't seen
any missed timers over several days test. So this might not actually be needed,
but it should make things even safer.
2026-01-02 20:02:36 -05:00
Alessandro Genova 96682a513b Undo some workarounds implemented to fix race conditions that are no longer needed 2026-01-02 20:02:36 -05:00
Alessandro Genova a71967a015 Perform as little work as possible in the interrupt callbacks 2026-01-02 20:02:36 -05:00
Alessandro Genova 9770ad4fe9 Fix more corner case that could cause the top of minute alarm to stop firing 2026-01-02 20:02:36 -05:00
Alessandro Genova a616ac6cc4 Fix corner case that could cause the top of minute alarm to stop firing 2026-01-02 20:02:36 -05:00
Alessandro Genova 7acc9cc414 Align the top of the second with the 1Hz periodic interrupt 2026-01-02 20:02:36 -05:00
Alessandro Genova 6e23421df4 Fix a bug that was causing 10x power usage from boot until the first sound played 2026-01-02 20:02:36 -05:00
Alessandro Genova e942f67685 Minor fixes to settings faces to work with the new rtc mode 2026-01-02 20:02:36 -05:00
Alessandro Genova eb9ec8659c Initial seemingly stable version of movement using the RTC COUNTER32 mode 2026-01-02 20:02:36 -05:00
voloved 57dec9f9f5 Merge pull request #103 from voloved/disable_slcd
Added watch_disable_display
2025-11-22 09:29:33 -05:00
David Volovskiy 8574216612 Moved away from i2c_result_t to int8_t 2025-10-19 12:58:07 -04:00
David Volovskiy 870fd8d01f Included return value of I2C calls 2025-10-19 12:51:34 -04:00
David Volovskiy 358ddeaea9 Added watch_disable_display 2025-08-23 11:31:59 -04:00
Eli Dowling d0ce60111e use 0 contrast for custom lcd
this greatly improves off axis viewing, for an extremely slightly reduction in actual contrast when viewed on axis.
2025-08-08 22:23:33 +10:00
voloved 154bd54510 Set time on make (#35)
* Time can get set from makefile

* Added setting make time into simulator

* Added  Hash in settings

* Added default location

* Cuts the Githash to 6 characters in the settings in case the makefile didn't do that already

* bump gossamer commit

* remove automatic timezone setting

* automatic time set: rename MAKEFILE_ to BUILD_ to match gossamer

* Revert "Added default location"

This reverts commit c24f69450fd40472c4f6cebb790a56c3f0d69cb6.

* silence warning

* watch_get_init_date_time: explicitly initialize all fields to 0

---------

Co-authored-by: Joey Castillo <joeycastillo@utexas.edu>
2025-07-06 10:56:27 -04:00
Joey Castillo 7cf81ee9e0 set LED's drive strength to high 2025-05-27 20:40:06 -04:00
Joey Castillo 310ad3d095 watch_adc: enable ADC when checking battery; let's get rid of this footgun once and for all 2025-05-21 08:51:39 -04:00
Joey Castillo 616bb08720 display detection: return straight away if LCD type was forced 2025-05-18 21:19:12 -04:00
Joey Castillo 5691a3f4f1 watch library: remove LCD autodetect, make selection manual 2025-05-18 21:04:49 -04:00
Joey Castillo 60914647b1 watch_rtc clarification: 128 Hz is 0x80, not 0xF0 2025-05-15 22:12:12 -04:00
Joey Castillo 74d59a3cee resume disabling EIC in deep sleep 2025-05-13 18:46:48 -04:00
Joey Castillo e0746e06f1 custom LCD now has an 'arrows' indicator instead of a battery 2025-05-12 22:37:37 -04:00
Joey Castillo 956b8601f6 enable filtering on button inputs 2025-05-12 22:25:27 -04:00
Joey Castillo 5059582e96 improved contrast on custom LCD 2025-05-11 20:16:40 -04:00
Joey Castillo 74923354b9 accelerometer: fix activity not being tracked in low energy mode 2025-04-30 07:44:15 -04:00
Joey Castillo e435969b51 WIP: accelerometer activity tracking 2025-04-20 13:47:04 -04:00
Joey Castillo 6637f1780a fix sticky sleep icon on custom LCD 2025-03-29 10:36:05 -04:00
Joey Castillo c1efea4db7 lcd autodetect: use buttons as a backup option 2025-03-15 09:48:53 -04:00
Joey Castillo f52b150c0b don't run LCD discovery if display is already running 2025-03-15 09:35:58 -04:00
Joey Castillo be5be6c5da slcd: silence warnings 2025-03-12 23:09:50 -04:00
Joey Castillo 73aac153e2 note for future testing 2025-03-08 17:18:16 -05:00
Joey Castillo 138e91c6ef display glass autodetection 2025-03-08 13:43:11 -05:00
joeycastillo b00faa2b03 accelerometer: new hardware swaps interrupt wiring 2024-11-18 21:39:12 -05:00
joeycastillo 83c7f18dd0 use char instead of uint8_t to match gossamer API 2024-10-27 14:27:55 -04:00
joeycastillo 1e359c0f7c classic LCD was looking a bit dim 2024-10-19 15:43:53 -04:00
joeycastillo 19376625d1 more accelerometer work 2024-10-19 12:35:46 -04:00
joeycastillo bc4c3cbd38 use gossamer 0.0.1 2024-10-14 21:19:09 -04:00
joeycastillo 4795818098 only build sensor features if sensor is available 2024-10-12 11:16:01 -04:00
joeycastillo c238511795 refactor watch I2C for gossamer 2024-10-08 22:44:08 -04:00
joeycastillo 4f297932ac refactor watch SPI for gossamer 2024-10-08 22:44:08 -04:00
joeycastillo cdcb612432 refactor watch UART for gossamer 2024-10-08 22:38:11 -04:00
joeycastillo 42871ad951 clear all of seconds display when going to sleep 2024-10-06 12:01:41 -04:00
joeycastillo 997f091c16 use updated gossamer typedefs 2024-10-05 10:36:58 -04:00
joeycastillo e5b458fe3b blink colon when clock is in sleep mode (custom LCD only) 2024-09-29 15:49:51 -04:00
joeycastillo 4b8b092594 tick_animation is now sleep_animation (which just displays an indicator on new LCD) 2024-09-29 15:24:43 -04:00
joeycastillo 3795b8494a support new sleep indicator 2024-09-29 15:24:43 -04:00