From bcc3fd002c7dede469ee5a897bf8132bc4c8027e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claus=20N=C3=A4veke?= Date: Wed, 21 Dec 2022 08:57:02 +0100 Subject: [PATCH 1/2] Update ledc.rst API has changed with https://github.com/espressif/arduino-esp32/pull/6570 --- docs/source/api/ledc.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/source/api/ledc.rst b/docs/source/api/ledc.rst index a23092e3886..ded50012621 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. From 510af2facf0c2ab022aa033efa519e3e237695a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claus=20N=C3=A4veke?= Date: Wed, 21 Dec 2022 08:59:32 +0100 Subject: [PATCH 2/2] Update ledc.rst Fix whitespace --- docs/source/api/ledc.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/api/ledc.rst b/docs/source/api/ledc.rst index ded50012621..d3ee885a474 100644 --- a/docs/source/api/ledc.rst +++ b/docs/source/api/ledc.rst @@ -71,7 +71,7 @@ This function is used to get configured frequency for the LEDC channel. .. code-block:: arduino - uint32_t ledcReadFreq(uint8_t chan); + uint32_t ledcReadFreq(uint8_t chan); * ``chan`` select the LEDC channel to read the configured frequency.