From 0b108e766508c94b6faf84712f0f34d82a2c6d58 Mon Sep 17 00:00:00 2001 From: w3jc Date: Wed, 17 May 2023 11:12:36 +0800 Subject: [PATCH 1/2] Update ledc.rst typo --- 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 d3ee885a474..efc66c86324 100644 --- a/docs/source/api/ledc.rst +++ b/docs/source/api/ledc.rst @@ -90,7 +90,7 @@ This function is used to setup the LEDC channel to 50 % PWM tone on selected fre * ``freq`` select frequency of pwm signal. This function will return ``frequency`` set for channel. -If ``0`` is returned, error occurs and ledc cahnnel was not configured. +If ``0`` is returned, error occurs and ledc channel was not configured. ledcWriteNote ************* From 61ca8421e4bc2a427b146ca839c2f166f73a5846 Mon Sep 17 00:00:00 2001 From: w3jc Date: Mon, 7 Aug 2023 17:20:32 +0800 Subject: [PATCH 2/2] Update adc.rst 12 bits (range from 0 to 4095) --- docs/source/api/adc.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/api/adc.rst b/docs/source/api/adc.rst index 1947fdcf990..7e8265afb8f 100644 --- a/docs/source/api/adc.rst +++ b/docs/source/api/adc.rst @@ -48,8 +48,8 @@ This function will return analog value in millivolts. analogReadResolution ^^^^^^^^^^^^^^^^^^^^ -This function is used to set the resolution of ``analogRead`` return value. Default is 12 bits (range from 0 to 4096) -for all chips except ESP32S3 where default is 13 bits (range from 0 to 8192). +This function is used to set the resolution of ``analogRead`` return value. Default is 12 bits (range from 0 to 4095) +for all chips except ESP32S3 where default is 13 bits (range from 0 to 8191). When different resolution is set, the values read will be shifted to match the given resolution. Range is 1 - 16 .The default value will be used, if this function is not used. @@ -205,4 +205,4 @@ Here is an example of how to use the ADC. .. literalinclude:: ../../../libraries/ESP32/examples/AnalogRead/AnalogRead.ino :language: arduino -Or you can run Arduino example 01.Basics -> AnalogReadSerial. \ No newline at end of file +Or you can run Arduino example 01.Basics -> AnalogReadSerial.