diff --git a/docs/source/api/ledc.rst b/docs/source/api/ledc.rst index a23092e3886..d3ee885a474 100644 --- a/docs/source/api/ledc.rst +++ b/docs/source/api/ledc.rst @@ -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.