change deprecated bit_num field to duty_resolution
This commit is contained in:
parent
45c541823c
commit
7e60fd2239
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ disp_backlight_h disp_backlight_new(const disp_backlight_config_t *config)
|
|||
};
|
||||
const ledc_timer_config_t LCD_backlight_timer = {
|
||||
.speed_mode = LEDC_LOW_SPEED_MODE,
|
||||
.bit_num = LEDC_TIMER_10_BIT,
|
||||
.duty_resolution = LEDC_TIMER_10_BIT,
|
||||
.timer_num = config->timer_idx,
|
||||
.freq_hz = 5000,
|
||||
.clk_cfg = LEDC_AUTO_CLK};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue