redraw
7d4a80a29d
fixed simulator watch rtc counter
2026-01-21 14:32:16 -03:00
Alessandro Genova
f6fad64eeb
don't force-reset the state of the RTC when rebooting
2026-01-02 20:07:56 -05:00
David Volovskiy
51ca839f3b
Removed all of the compiler warnings
2026-01-02 20:07:56 -05:00
David Volovskiy
e8750713f8
Renamed LIS2DW_FIFO_TIMEOUT_SECOND to LIS2DW_FIFO_TIMEOUT
2026-01-02 20:07:56 -05:00
David Volovskiy
757f1a1de7
defined LIS2DW_FIFO_TIMEOUT_SECOND
2026-01-02 20:07:56 -05:00
David Volovskiy
19f789e428
Made the timeout for lis2dw_read_fifo a variable
2026-01-02 20:07:56 -05:00
David Volovskiy
c6c97556ac
Added FIFO timeout to LIS2DW
2026-01-02 20:07:56 -05:00
David Volovskiy
dd054efe8d
Added LIR latching on LIS2DW
2026-01-02 20:07:56 -05:00
David Volovskiy
c5fe350fa1
Explicitly set interrupt type to latched
2026-01-02 20:07:56 -05:00
Alessandro Genova
996d5d6679
Convert from timestamp to date_time once per second at most
2026-01-02 20:07:56 -05:00
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
c37d40d086
Make the simulator play beeps a lot more reliably.
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
David Volovskiy
23038c3f74
Reapply "Added double-tap capabilities to LIS2DW"
...
This reverts commit 3bd1254b5f .
2025-12-01 20:14:54 -05:00
voloved
3bd1254b5f
Revert "Added double-tap capabilities to LIS2DW"
2025-12-01 20:09:34 -05:00
voloved
57dec9f9f5
Merge pull request #103 from voloved/disable_slcd
...
Added watch_disable_display
2025-11-22 09:29:33 -05:00
voloved
b9e597dfc3
Merge pull request #95 from eiriksm/fix/blue-sim
...
Support blue led in sim
2025-11-22 08:58:24 -05:00
voloved
15b8d0cc3f
Merge pull request #149 from voloved/double-tap
...
Added double-tap capabilities to LIS2DW
2025-11-22 08:53:20 -05:00
David Volovskiy
e7225e1d5c
Merge branch 'main' into double-tap
2025-11-22 08:50:44 -05:00
michael-lachmann
998a135078
Avoid out-of-range character
...
When character is out of range, this will access illegal memory areas.
In watch_display_text() it also makes sense to stop on char='\0' even when in position 0.
2025-11-21 20:28:41 -07:00
David Volovskiy
eaae42cca9
Added double-tap capabilities to LIS2DW
2025-11-15 14:49:56 -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
atax1a
fe1c024e47
Merge pull request #122 from alesgenova/fix-year-2067
...
fix int32 overflow when setting a year past 2067
2025-10-14 00:41:20 +00:00
Alessandro Genova
af0051a160
fix int32 overflow when setting a year past 2067
2025-09-24 23:23:27 -04:00
David Volovskiy
358ddeaea9
Added watch_disable_display
2025-08-23 11:31:59 -04:00
Eirik S. Morland
5d5ac6facb
Support blue led in sim
2025-08-18 21:54:53 +02: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
Lorenzo Prosseda
3baff2f5a7
Avoid confusion between T and E on classic display
...
In place of T, display a + character in positions 4 and 6
2025-08-04 07:11:23 -04:00
Alessandro Genova
d903a827e9
Fix simulator deep sleep mode
2025-08-03 13:20:53 -04:00
Joey Castillo
410d32f2d0
silence warnings
2025-07-06 12:40:06 -04: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
Ruben Nic
99b02ee0b5
Add support for custom display in the simulator ( #26 )
...
* Initial custom display SVG and display selection
* clean up SVG and add data-com and data-seg
* Fix signal's data-com and data-seg
* Revert "Fix signal's data-com and data-seg"
This reverts commit 82f8dc6a91973fb3b9e25e8e073a26d8996977ae.
* Update indicators mapping for custom display
* Align #ifs to the left
2025-06-30 19:34:16 -04:00
Joey Castillo
bf40e46036
bugfix: remove time_offset to get alarm handler working in simulator
2025-06-07 21:25:57 -06: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
f48058568a
watch utility: make Friday all caps like the others
2025-05-21 00:53:13 -04:00
Joey Castillo
287f755edb
slcd: we can fit these segment mappings into one byte
2025-05-20 23:50:09 -04:00
Joey Castillo
d43c216664
bugfix: need definition of colon as indicator for blinking on custom LCD
2025-05-20 23:42:22 -04:00