Skip to content

docs: Correct ADC default resolution statement for ESP32-S2 #11653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/en/api/adc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ analogReadResolution
^^^^^^^^^^^^^^^^^^^^

This function is used to set the resolution of ``analogRead`` return value. Default is 12 bits (range from 0 to 4095)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only for the chip revision v0.0. For v1.0, the resolution is 12 bits.

Please add a reference to the ADC-112 Bit 1 of SAR ADC Does Not Flip errata.

for all chips except ESP32-S3 where default is 13 bits (range from 0 to 8191).
for all chips except ESP32-S2 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