iot增加屏幕背光亮度调节 (#150)

This commit is contained in:
Kevincoooool
2025-02-14 00:21:46 +08:00
committed by GitHub
parent b889355d8d
commit 9b8db4a551
13 changed files with 59 additions and 4 deletions

View File

@@ -132,7 +132,7 @@ void LcdDisplay::InitializeBacklight(gpio_num_t backlight_pin) {
.speed_mode = LEDC_LOW_SPEED_MODE,
.duty_resolution = LEDC_TIMER_10_BIT,
.timer_num = LEDC_TIMER_0,
.freq_hz = 5000,
.freq_hz = 20000,//背光pwm频率需要高一点防止电感啸叫
.clk_cfg = LEDC_AUTO_CLK,
.deconfigure = false
};