From e9895107c7013bbc23f36dc2a465cfe567f068dd Mon Sep 17 00:00:00 2001 From: fvanroie Date: Sun, 12 Apr 2020 16:47:52 +0200 Subject: [PATCH] Use higher PWM frequency --- src/hasp_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hasp_gui.cpp b/src/hasp_gui.cpp index 2802c254..4435595d 100644 --- a/src/hasp_gui.cpp +++ b/src/hasp_gui.cpp @@ -653,7 +653,7 @@ void guiSetup() #if defined(ARDUINO_ARCH_ESP32) // pinMode(guiBacklightPin, OUTPUT); // configure LED PWM functionalitites - ledcSetup(BACKLIGHT_CHANNEL, 1000, 10); + ledcSetup(BACKLIGHT_CHANNEL, 20000, 10); // attach the channel to the GPIO to be controlled ledcAttachPin(guiBacklightPin, BACKLIGHT_CHANNEL); #else