-
Notifications
You must be signed in to change notification settings - Fork 7.6k
[ESP32-S2] analogRead(A10) WIDTH ERR #5658
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
Comments
Setting the default analogWidth to 4 for ESP32S2 seems to solve this problem. adc2_get_raw rejects all other values.
|
@chegewara, @caternuson, @atanisoft, @ladyada The following patch make more sense because the fix is specific to ESP32S2. It compiles cleanly with Board Types=[ESP32 Dev Module | ESP32S2 Dev Module | ESP32C3 Dev Module] and Core Debug Level=Debug.
|
great @touchgadget can you do a PR so @me-no-dev can merge it? |
@ladyada OK, I will submit a PR but it is fine if @caternuson updates #5711. |
ok, i pushed those changes |
I'm closing this one. For some reason it wasn't closed by merged PR. |
Hardware:
Board: ESP32S2 Saola, ESP32S2 Dev Module
Core Installation version: 2.0.0
IDE name: Arduino IDE 1.8.16
Flash Frequency: 80Mhz
PSRAM enabled: no
Upload Speed: 921600
Computer OS: Ubuntu 18.04
Description:
Analog input on ADC2 returns WIDTH ERR. A0-A9 work fine.
Sketch: (leave the backquotes for code formatting)
Debug Messages:
The text was updated successfully, but these errors were encountered: