Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a95ce27

Browse filesBrowse files
Reflect ledc API changes in Docs (espressif#7612)
* Update ledc.rst API has changed with espressif#6570 * Update ledc.rst Fix whitespace Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
1 parent a6fefb2 commit a95ce27
Copy full SHA for a95ce27

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎docs/source/api/ledc.rst

Copy file name to clipboardExpand all lines: docs/source/api/ledc.rst
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This function is used to setup the LEDC channel frequency and resolution.
2828

2929
.. code-block:: arduino
3030
31-
double ledcSetup(uint8_t channel, double freq, uint8_t resolution_bits);
31+
uint32_t ledcSetup(uint8_t channel, uint32_t freq, uint8_t resolution_bits);
3232
3333
* ``channel`` select LEDC channel to config.
3434
* ``freq`` select frequency of pwm.
@@ -71,7 +71,7 @@ This function is used to get configured frequency for the LEDC channel.
7171

7272
.. code-block:: arduino
7373
74-
double ledcReadFreq(uint8_t chan);
74+
uint32_t ledcReadFreq(uint8_t chan);
7575
7676
* ``chan`` select the LEDC channel to read the configured frequency.
7777

@@ -84,7 +84,7 @@ This function is used to setup the LEDC channel to 50 % PWM tone on selected fre
8484

8585
.. code-block:: arduino
8686
87-
double ledcWriteTone(uint8_t chan, double freq);
87+
uint32_t ledcWriteTone(uint8_t chan, uint32_t freq);
8888
8989
* ``chan`` select LEDC channel.
9090
* ``freq`` select frequency of pwm signal.
@@ -99,7 +99,7 @@ This function is used to setup the LEDC channel to specific note.
9999

100100
.. code-block:: arduino
101101
102-
double ledcWriteNote(uint8_t chan, note_t note, uint8_t octave);
102+
uint32_t ledcWriteNote(uint8_t chan, note_t note, uint8_t octave);
103103
104104
* ``chan`` select LEDC channel.
105105
* ``note`` select note to be set.
@@ -144,7 +144,7 @@ This function is used to set frequency for the LEDC channel.
144144

145145
.. code-block:: arduino
146146
147-
double ledcChangeFrequency(uint8_t chan, double freq, uint8_t bit_num);
147+
uint32_t ledcChangeFrequency(uint8_t chan, uint32_t freq, uint8_t bit_num);
148148
149149
* ``channel`` select LEDC channel.
150150
* ``freq`` select frequency of pwm.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.