diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2022-07-04 11:23:09 -0500 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2022-07-04 11:23:09 -0500 |
commit | 5b650b9efeedd73c770149dd3fd6d92189c0a701 (patch) | |
tree | 1d2d2c4c196845fe8580256ae6a89de8d7fd303e | |
parent | 4fb022edb6606ea3d95e5aaa2b77f3578de26dc2 (diff) | |
download | Sensor-Watch-5b650b9efeedd73c770149dd3fd6d92189c0a701.tar.gz Sensor-Watch-5b650b9efeedd73c770149dd3fd6d92189c0a701.tar.bz2 Sensor-Watch-5b650b9efeedd73c770149dd3fd6d92189c0a701.zip |
reduce flicker of LED by default
-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 e4a03926..4b010d4a 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); |