File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ ledcAttach
27
27
**********
28
28
29
29
This function is used to setup LEDC pin with given frequency and resolution.
30
+ LEDC channel will be selected automatically.
30
31
31
32
.. code-block :: arduino
32
33
@@ -41,6 +42,25 @@ This function is used to setup LEDC pin with given frequency and resolution.
41
42
This function will return ``true `` if configuration is successful.
42
43
If ``false `` is returned, error occurs and LEDC channel was not configured.
43
44
45
+ ledcAttachChannel
46
+ *****************
47
+
48
+ This function is used to setup LEDC pin with given frequency, resolution and channel.
49
+
50
+ .. code-block :: arduino
51
+
52
+ bool ledcAttachChannel(uint8_t pin, uint32_t freq, uint8_t resolution, uint8_t channel);
53
+
54
+ * ``pin `` select LEDC pin.
55
+ * ``freq `` select frequency of pwm.
56
+ * ``resolution `` select resolution for LEDC channel.
57
+ * ``channel `` select LEDC channel.
58
+
59
+ * range is 1-14 bits (1-20 bits for ESP32).
60
+
61
+ This function will return ``true `` if configuration is successful.
62
+ If ``false `` is returned, error occurs and LEDC channel was not configured.
63
+
44
64
ledcWrite
45
65
*********
46
66
You can’t perform that action at this time.
0 commit comments