summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-08-28 20:54:02 +1000
committerjacqueline <me@jacqueline.id.au>2023-08-28 20:54:02 +1000
commit1200479045dfeae54574a97f5aa3dfa5cfa45e57 (patch)
tree43054d02acb5cd066dd61a899437e0b07cd8aca3
parentc214d4b40e2502bf22aa827e8f210cc4296de9fd (diff)
downloadtangara-fw-1200479045dfeae54574a97f5aa3dfa5cfa45e57.tar.gz
one weird trick to avoid 5khz tone
-rw-r--r--src/drivers/display.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/display.cpp b/src/drivers/display.cpp
index f828d33e..f986f35d 100644
--- a/src/drivers/display.cpp
+++ b/src/drivers/display.cpp
@@ -100,9 +100,9 @@ auto Display::Create(IGpios* expander,
ledc_timer_config_t led_config{
.speed_mode = LEDC_LOW_SPEED_MODE,
- .duty_resolution = LEDC_TIMER_13_BIT,
+ .duty_resolution = LEDC_TIMER_8_BIT,
.timer_num = LEDC_TIMER_0,
- .freq_hz = 5000,
+ .freq_hz = 50000,
.clk_cfg = LEDC_AUTO_CLK,
};
ESP_ERROR_CHECK(ledc_timer_config(&led_config));