mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-26 04:36:38 +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)
|
#if defined(ARDUINO_ARCH_ESP32)
|
||||||
// pinMode(guiBacklightPin, OUTPUT);
|
// pinMode(guiBacklightPin, OUTPUT);
|
||||||
// configure LED PWM functionalitites
|
// configure LED PWM functionalitites
|
||||||
ledcSetup(BACKLIGHT_CHANNEL, 1000, 10);
|
ledcSetup(BACKLIGHT_CHANNEL, 20000, 10);
|
||||||
// attach the channel to the GPIO to be controlled
|
// attach the channel to the GPIO to be controlled
|
||||||
ledcAttachPin(guiBacklightPin, BACKLIGHT_CHANNEL);
|
ledcAttachPin(guiBacklightPin, BACKLIGHT_CHANNEL);
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user