Skip to content

another problem with busdevice-in-core and bitbangio? #4494

Closed
@jepler

Description

@jepler

I found that with the following code, the with-statement is never entered (circuitpython waits forever). However, if I change the type of spi bus to board.SPI() aka busio.SPI, it completes.

# spi = board.SPI()
spi = bitbangio.SPI(board.SCK, MISO=board.MISO, MOSI=board.MOSI)
cs = digitalio.DigitalInOut(board.D10)
dev = adafruit_bus_device.spi_device.SPIDevice(spi, cs)
print("before with-statement")
with dev as card:
    print("with-statement")
print("after with-statement")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions