@@ -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