-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
ADC reading incorrectly when others are created in RP2 port #6833
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
Just out of curiosity, I tried having a look at https://github.com/micropython/micropython/blob/master/ports/rp2/machine_adc.c but it seems to be using |
Otherwise it resets the ADC peripheral each time a new ADC object is constructed, which can reset other state that has already been set up. See issue micropython#6833. Signed-off-by: Damien George <damien@micropython.org>
Thanks for the report, I can confirm the issue. It's because Should be fixed by #6834. |
Otherwise it resets the ADC peripheral each time a new ADC object is constructed, which can reset other state that has already been set up. See issue micropython#6833. Signed-off-by: Damien George <damien@micropython.org>
Fixed by 7f7b4f2 |
Fix typos and grammar in design_guide
In the below code, whether or not you created ADC3 affects the reading of ADC4. With the line commented out, I get a reading of about 17 degrees. With it there I get a reading of about 80.
The text was updated successfully, but these errors were encountered: