Merge branch 'bugfix/ledc_channel_update_usage' into 'master'

ledc: Fix bug in channel-duty configuration

Closes IDF-6439

See merge request espressif/esp-idf!21635
This commit is contained in:
Song Ruo Jing
2023-01-03 20:11:08 +08:00
5 changed files with 18 additions and 2 deletions

View File

@@ -42,6 +42,10 @@ As an optional step, it is also possible to set up an interrupt on fade end.
Key Settings of LED PWM Controller's API
.. note::
For an initial setup, it is recommended to configure for the timers first (by calling :cpp:func:`ledc_timer_config`), and then for the channels (by calling :cpp:func:`ledc_channel_config`). This ensures the PWM frequency is at the desired value since the appearance of the PWM signal from the IO pad.
.. _ledc-api-configure-timer:

View File

@@ -42,6 +42,10 @@ LED PWM 控制器可在无需 CPU 干预的情况下自动改变占空比,实
LED PWM 控制器 API 的关键配置
.. note::
首次 LEDC 配置时,建议先配置定时器(调用函数 :cpp:func:`ledc_timer_config`),再配置通道(调用函数 :cpp:func:`ledc_channel_config`)。这样可以确保 IO 脚上的 PWM 信号自有输出开始其频率就是正确的。
.. _ledc-api-configure-timer: