diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2022-08-02 08:17:26 -0600 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2022-08-02 08:17:26 -0600 |
commit | bcd3b666848214a735f37a5a4f08b157ba7bb3a1 (patch) | |
tree | 149bd53bbd46ebddd31957cc827a7c40ccf6f1a0 /watch-library | |
parent | ed526355f69a931d51a6ebff1b45c70988e7b255 (diff) | |
parent | 6d87f5a6268a9a516d8c577dfd71b39a5bfc384a (diff) | |
download | Sensor-Watch-bcd3b666848214a735f37a5a4f08b157ba7bb3a1.tar.gz Sensor-Watch-bcd3b666848214a735f37a5a4f08b157ba7bb3a1.tar.bz2 Sensor-Watch-bcd3b666848214a735f37a5a4f08b157ba7bb3a1.zip |
Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into lfs
Diffstat (limited to 'watch-library')
-rw-r--r-- | watch-library/hardware/watch/watch_private.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/watch-library/hardware/watch/watch_private.c b/watch-library/hardware/watch/watch_private.c index a197e522..cd607b8e 100644 --- a/watch-library/hardware/watch/watch_private.c +++ b/watch-library/hardware/watch/watch_private.c @@ -142,7 +142,7 @@ void _watch_enable_tcc(void) { #endif // The buzzer will set the period depending on the tone it wants to play, but we have to set some period here to // get the LED working. Almost any period will do, tho it should be below 20000 (i.e. 50 Hz) to avoid flickering. - hri_tcc_write_PER_reg(TCC0, 4096); + hri_tcc_write_PER_reg(TCC0, 1024); // Set the duty cycle of all pins to 0: LED's off, buzzer not buzzing. hri_tcc_write_CC_reg(TCC0, WATCH_BUZZER_TCC_CHANNEL, 0); hri_tcc_write_CC_reg(TCC0, WATCH_RED_TCC_CHANNEL, 0); |