Skip to content
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

RP2040 busio.UART not freeing pin after detecting invalid pins #9424

Closed
dhalbert opened this issue Jul 12, 2024 · 0 comments · Fixed by #9425
Closed

RP2040 busio.UART not freeing pin after detecting invalid pins #9424

dhalbert opened this issue Jul 12, 2024 · 0 comments · Fixed by #9425
Labels
busio rp2040 Raspberry Pi RP2040
Milestone

Comments

@dhalbert
Copy link
Collaborator

dhalbert commented Jul 12, 2024

Adafruit CircuitPython 9.1.0-rc.0 on 2024-07-09; Adafruit Metro RP2040 with rp2040
>>> import board, busio
>>> u = busio.UART(board.SDA, board.SCL)
>>> u.deinit()
>>> u = busio.UART(board.SDA, board.SCL)
>>> u.deinit()
>>> u = busio.UART(board.SDA, board.A0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Invalid pins
>>> u = busio.UART(board.SDA, board.A1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: SDA in use

SDA should not be in use.

User in discord encountered this when trying to run the Where's My UART code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
busio rp2040 Raspberry Pi RP2040
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant