CircuitPython version and board name
Code/REPL
import board
import sdcardio
spi = board.SPI()
sdcard = sdcardio.SDCard(spi,board.SD_CS)
Behavior
Zurückverfolgung (jüngste Aufforderung zuletzt):
Datei "main.py", Zeile 271, in <module>
Datei "main.py", Zeile 201, in load_image
TypeError: cs muss von Typ Pin sein, nicht IOPin
Description
I am working on a new board that has the SD_CS pin behind an IOExpander. This is failing since sdcardio.SDCard does not support the digitalio.DigitalInOutProtocol for the CS-pin.
Would it make sense to copy the same logic that fourwire.FourWire uses for the CS pin?
Additional information
No response
CircuitPython version and board name
mainCode/REPL
Behavior
Description
I am working on a new board that has the SD_CS pin behind an IOExpander. This is failing since
sdcardio.SDCarddoes not support thedigitalio.DigitalInOutProtocolfor the CS-pin.Would it make sense to copy the same logic that
fourwire.FourWireuses for the CS pin?Additional information
No response