未验证 提交 a95ce27a 编写于 作者: C Claus Näveke 提交者: GitHub

Reflect ledc API changes in Docs (#7612)

* Update ledc.rst

API has changed with https://github.com/espressif/arduino-esp32/pull/6570

* Update ledc.rst

Fix whitespace
Co-authored-by: NJan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
上级 a6fefb20
......@@ -28,7 +28,7 @@ This function is used to setup the LEDC channel frequency and resolution.
.. code-block:: arduino
double ledcSetup(uint8_t channel, double freq, uint8_t resolution_bits);
uint32_t ledcSetup(uint8_t channel, uint32_t freq, uint8_t resolution_bits);
* ``channel`` select LEDC channel to config.
* ``freq`` select frequency of pwm.
......@@ -71,7 +71,7 @@ This function is used to get configured frequency for the LEDC channel.
.. code-block:: arduino
double ledcReadFreq(uint8_t chan);
uint32_t ledcReadFreq(uint8_t chan);
* ``chan`` select the LEDC channel to read the configured frequency.
......@@ -84,7 +84,7 @@ This function is used to setup the LEDC channel to 50 % PWM tone on selected fre
.. code-block:: arduino
double ledcWriteTone(uint8_t chan, double freq);
uint32_t ledcWriteTone(uint8_t chan, uint32_t freq);
* ``chan`` select LEDC channel.
* ``freq`` select frequency of pwm signal.
......@@ -99,7 +99,7 @@ This function is used to setup the LEDC channel to specific note.
.. code-block:: arduino
double ledcWriteNote(uint8_t chan, note_t note, uint8_t octave);
uint32_t ledcWriteNote(uint8_t chan, note_t note, uint8_t octave);
* ``chan`` select LEDC channel.
* ``note`` select note to be set.
......@@ -144,7 +144,7 @@ This function is used to set frequency for the LEDC channel.
.. code-block:: arduino
double ledcChangeFrequency(uint8_t chan, double freq, uint8_t bit_num);
uint32_t ledcChangeFrequency(uint8_t chan, uint32_t freq, uint8_t bit_num);
* ``channel`` select LEDC channel.
* ``freq`` select frequency of pwm.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册