8000 rp2/machine_adc: Only initialise the ADC periph if not already running. by dpgeorge · Pull Request #6834 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

rp2/machine_adc: Only initialise the ADC periph if not already running. #6834

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

Merged
merged 1 commit into from
Feb 4, 2021

Conversation

dpgeorge
Copy link
Member
@dpgeorge dpgeorge commented Feb 3, 2021

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 #6833.

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>
@dpgeorge dpgeorge merged commit 7f7b4f2 into micropython:master Feb 4, 2021
@dpgeorge dpgeorge deleted the rp2-adc-init-once branch February 4, 2021 00:06
Wind-stormger pushed a commit to BPI-STEAM/micropython that referenced this pull request Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0