Skip to content

Commit

Permalink
Update adc.rst (#8493)
Browse files Browse the repository at this point in the history
* Update ledc.rst

typo

* Update adc.rst

12 bits (range from 0 to 4095)
  • Loading branch information
w3jc authored Aug 29, 2023
1 parent 42fc2fb commit 9e4acce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/api/adc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Or you can run Arduino example 01.Basics -> AnalogReadSerial.

0 comments on commit 9e4acce

Please sign in to comment.