Skip to content

Commit 25a785c

Browse files
committed
docs(ledc): Fix functions name and parameters
1 parent 7d79ed1 commit 25a785c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/en/api/ledc.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This function is used to setup LEDC pin with given frequency and resolution. LED
3030

3131
.. code-block:: arduino
3232
33-
bool ledcAttach(uint8_t pin, uint32_t freq, uint8_t resolution, int8_t channel);
33+
bool ledcAttach(uint8_t pin, uint32_t freq, uint8_t resolution);
3434
3535
* ``pin`` select LEDC pin.
3636
* ``freq`` select frequency of pwm.
@@ -48,7 +48,7 @@ This function is used to setup LEDC pin with given frequency, resolution and cha
4848

4949
.. code-block:: arduino
5050
51-
bool ledcAttach(uint8_t pin, uint32_t freq, uint8_t resolution, int8_t channel);
51+
bool ledcAttachChannel(uint8_t pin, uint32_t freq, uint8_t resolution, int8_t channel);
5252
5353
* ``pin`` select LEDC pin.
5454
* ``freq`` select frequency of pwm.

0 commit comments

Comments
 (0)