Skip to content

sdcard.SDCard: cs does not support digitalio.DigitalInOutProtocol #11047

@bablokb

Description

@bablokb

CircuitPython version and board name

main

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions