mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Use higher PWM frequency
This commit is contained in:
parent
0445a7d045
commit
e9895107c7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user