Added LEDC basic PWM example
Changes on the ledc_init function Review on the README, docs and example functions Added how to set freq and duty on README Fix on the ledc.rst docs in the App Example Added new example reference in the Chinese docs
This commit is contained in:
@@ -192,8 +192,9 @@ The duty resolution is normally set using :cpp:type:`ledc_timer_bit_t`. This enu
|
||||
Application Example
|
||||
-------------------
|
||||
|
||||
The LEDC change duty cycle and fading control example: :example:`peripherals/ledc`.
|
||||
The LEDC change duty cycle and fading control example: :example:`peripherals/ledc/ledc_fade`.
|
||||
|
||||
The LEDC basic example: :example:`peripherals/ledc/ledc_basic`.
|
||||
|
||||
API Reference
|
||||
-------------
|
||||
|
||||
@@ -192,7 +192,9 @@ LED PWM 控制器 API 会在设定的频率和占空比分辨率超过 LED PWM
|
||||
应用实例
|
||||
-------------------
|
||||
|
||||
LED PWM 改变占空比和渐变控制的实例请参照 :example:`peripherals/ledc`。
|
||||
使用 LEDC 改变占空比和渐变控制的实例请参照 :example:`peripherals/ledc/ledc_fade`。
|
||||
|
||||
使用 LEDC 基本实例请参照 :example:`peripherals/ledc/ledc_basic`。
|
||||
|
||||
|
||||
API 参考
|
||||
|
||||
Reference in New Issue
Block a user