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

Leaves pins in use after deinit() #14

Closed
jepler opened this issue Dec 23, 2020 · 0 comments · Fixed by #17
Closed

Leaves pins in use after deinit() #14

jepler opened this issue Dec 23, 2020 · 0 comments · Fixed by #17

Comments

@jepler
Copy link
Member

jepler commented Dec 23, 2020

Tested on a Kaluga with CircuitPython 6.1 beta version, built locally with DEBUG=1,

>>> import adafruit_bitbangio as busio
>>> import board
>>> bus = busio.I2C(board.IO10, board.IO11); bus.try_lock(); bus.scan(); bus.deinit()
True
[0, 11, 112]
>>> bus = busio.I2C(board.IO10, board.IO11); bus.try_lock(); bus.scan(); bus.deinit()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/lib/adafruit_bitbangio.py", line 103, in __init__
ValueError: IO10 in use

Expected behavior: The bus object can be recreated

Actual behavior: The bus object cannot be recreated

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

Successfully merging a pull request may close this issue.

1 participant