You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ledc): Allow attaching multiple pins to 1 channel (espressif#10032)
* feat(ledc): Allow attaching multiple pins to 1 channel
* feat(ledc): Add ledcWriteChannel function
* feat(ledc): Print info about already set channel
* docs(ledc): Add ledcWriteChannel function and attach update
* feat(ledc): Add example and fixes
* feat(ledc): Remove commented code
* feat(ledc): Fix missing new line at end of file
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Copy file name to clipboardexpand all lines: docs/en/api/ledc.rst
+16
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@ ledcAttachChannel
45
45
*****************
46
46
47
47
This function is used to setup LEDC pin with given frequency, resolution and channel.
48
+
Attaching multiple pins to the same channel will make them share the same duty cycle. Given frequency, resolution will be ignored if channel is already configured.
48
49
49
50
.. code-block:: arduino
50
51
@@ -76,6 +77,21 @@ This function is used to set duty for the LEDC pin.
76
77
This function will return ``true`` if setting duty is successful.
77
78
If ``false`` is returned, error occurs and duty was not set.
78
79
80
+
ledcWriteChannel
81
+
****************
82
+
83
+
This function is used to set duty for the LEDC channel.
0 commit comments