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.