-
Notifications
You must be signed in to change notification settings - Fork 7.6k
analogReadResolution should be implemented #161
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
Labels
Type: Feature request
Feature request for Arduino ESP32
Comments
cool! Will look into it :) |
me-no-dev
added a commit
that referenced
this issue
Mar 3, 2017
implemented in the latest master :) |
me-no-dev
pushed a commit
that referenced
this issue
Oct 24, 2021
…ulotion() (#5776) Function analogReadResolution set how many bits will analogRead return. Find out that this functionality was added back 2017 by @me-no-dev in #161. Related issues: #5163
blue-2357
pushed a commit
to blue-2357/arduino-esp32
that referenced
this issue
Jul 17, 2024
brentru
pushed a commit
to adafruit/arduino-esp32
that referenced
this issue
Oct 22, 2024
Update pico flash params
darkxst
pushed a commit
to darkxst/arduino-esp32
that referenced
this issue
Dec 5, 2024
dash0820
added a commit
to dash0820/arduino-esp32-stripped
that referenced
this issue
Mar 10, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sam/samd/arc32 architectures use analogReadResolution to set the analogRead() bit resolution and it looks like this will be a "normal" api call.
I see analogSetWidth in esp32-hal-adc.h. It would be extremely easy to put a compatible analogReadResolution in that calls analogSetWidth.
Something to keep in mind is that analogReadResolution can be set up to 16 bits. If the bit resolution exceeds the ADC's actual capabilities, analogRead is expected to bit-shift the ADC's result to get a 16-bit result.
The text was updated successfully, but these errors were encountered: