redraw
22293ed693
jump counter forward when tab resumes from background
2026-01-22 17:39:33 -03:00
redraw
d653cf6921
renamed counter_interval to rtc_enabled
2026-01-22 13:18:18 -03:00
redraw
a3664b0789
update simulator rtc counter improvements to match real hardware
2026-01-22 12:33:34 -03:00
redraw
7d4a80a29d
fixed simulator watch rtc counter
2026-01-21 14:32:16 -03:00
David Volovskiy
51ca839f3b
Removed all of the compiler warnings
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
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
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
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
voloved
b9e597dfc3
Merge pull request #95 from eiriksm/fix/blue-sim
...
Support blue led in sim
2025-11-22 08:58:24 -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
Eirik S. Morland
5d5ac6facb
Support blue led in sim
2025-08-18 21:54:53 +02:00
Alessandro Genova
d903a827e9
Fix simulator deep sleep mode
2025-08-03 13:20:53 -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
Eirik Stanghelle Morland
81dc49adf4
Fix simulator LCD handling
2025-03-09 08:29:05 +01:00
joeycastillo
83c7f18dd0
use char instead of uint8_t to match gossamer API
2024-10-27 14:27:55 -04:00
voloved
94d8a581d9
Made the simulator properly set itself with the UTC time on startup ( #7 )
2024-10-27 14:08:05 -04:00
joeycastillo
2ea18e0f73
fix broken simulator build
2024-10-14 12:51:17 -04:00
joeycastillo
cdcb612432
refactor watch UART for gossamer
2024-10-08 22:38:11 -04:00
joeycastillo
ab861d81d1
fix time zones in simulator
2024-10-07 08:36:23 -04:00
joeycastillo
a988733bb6
bump gossamer commit
2024-10-07 08:00:32 -04:00
joeycastillo
63c34005ee
initial pass at simulator support
2024-10-06 17:14:46 -04:00
joeycastillo
0a9d71e2d4
use consistent naming style for 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
e8cedeac6c
rename enum, rearrange watch_tcc.h
2024-09-22 14:26:49 -04:00
joeycastillo
2e738db673
add buzzer volume control
2024-09-22 13:34:46 -04:00
joeycastillo
0585a1d0d8
consolidate buzzer and LED into TCC file
2024-09-18 14:53:46 -04:00
joeycastillo
29f020e207
port buzzer and LED functions to gossamer framework
2024-09-18 14:47:53 -04:00
Jose Castillo
d98d14d236
Add support for Sensor Watch Pro ( #412 )
...
* Sensor Watch Pro board definition
* Disable hot-plugging on SWCLK
* Add rainbow test
* Move interrupt mapping to board config
* New color definition for Pro boards in makefile
2024-07-06 11:07:02 -04:00
Matheus Afonso Martins Moreira
592e18bf0e
Merge branch 'silicon-errata' into advanced
...
Implements the recommended workarounds for numerous silicon errata,
reducing power consumption and preventing freezes and hard faults.
Tested-by: Alex Maestas <git@se30.xyz >
Tested-by: Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com >
Tested-on-hardware-by: Alex Maestas <git@se30.xyz >
Tested-on-hardware-by: Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com >
Reviewed-by: Wesley Aptekar-Cassels <me@wesleyac.com >
Reviewed-by: Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com >
Signed-off-by: Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com >
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/340
GitHub-Related-Issue: https://github.com/joeycastillo/Sensor-Watch/issues/361
GitHub-Related-Issue: https://github.com/joeycastillo/Sensor-Watch/issues/359
Reference: https://ww1.microchip.com/downloads/aemDocuments/documents/MCU32/ProductDocuments/Errata/SAM-L22-Family-Silicon-Errata-and-Data-Sheet-Clarification-DS80000782.pdf
2024-03-08 06:50:16 -03:00
Alex Maestas
83a0e4e992
annotate TRNG erratum, address review comment
2024-01-22 00:39:18 +00:00
Wesley Aptekar-Cassels
50dccd07d3
buzzer: fix simulator build, refactor sequence_length.
2024-01-09 16:22:21 -05:00
Alex Maestas
93d7f38d67
fix simulator build by declaring Trng type as a void pointer
2023-12-17 22:40:04 +00:00
Alex Maestas
8206f37fcf
fix undefined behavior found by clang's sanitize
2023-12-07 02:24:26 +00:00
Hugo Chargois
b82d728937
Simulator: Add keyboard arrows as buttons shortcuts
2023-11-19 19:50:39 +01:00
Hugo Chargois
2534dc7a65
Simulator: Allow typing a, l & m in console input
...
These keys are the shortcuts to "press" the alarm, light and mode
buttons. However, they prevent these letters from being input in the
debug console to send filesystem commands. Strangely, there was already
some code to allow typing these letters in the console output, but not
in the input.
2023-11-19 19:45:51 +01:00
Wesley Aptekar-Cassels
c4a5cb463e
Merge pull request #276 from hchargois/simulator-volume-slider
...
Simulator volume slider
2023-11-18 23:17:56 -05:00
Victor Graf
5b212a4423
Fix simulator and hardware divergence in callback handling ( #252 )
...
When using the simulator, I encountered cases where the light would become stuck on, and the watch
would be unresponsive. In particular, this would occur when pressing the light button on the
sunrise sunset watch face.
I appears that this is caused by a divergence in out the callback mask is interpreted by the
hardware interface, and in the simulator in the following function.
void watch_rtc_disable_matching_periodic_callbacks(uint8_t mask)
In particular, a mask of 0xFE is intended to disable all except the 128hz callback at index 0,
but instead disables all except the 1hz callback at index 7 in the simulator.
2023-11-18 23:10:45 -05:00
Hugo Chargois
2e364f4ef9
Add a volume slider in the simulator
2023-09-16 02:39:39 +02:00