Closed
Description
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")