Skip to content

Leaves pins in use after deinit() #14

Closed
@jepler

Description

@jepler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions