Skip to content

Commit afbfa32

Browse files
authored
Merge pull request #10464 from dhalbert/fix-sdioio-data-doc
shared-bindings/sdioio/SDCard.c: fix example use of `board.SDIO_DATA`
2 parents e0e7c82 + 729ef68 commit afbfa32

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

shared-bindings/sdioio/SDCard.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@
5555
//| sd = sdioio.SDCard(
5656
//| clock=board.SDIO_CLOCK,
5757
//| command=board.SDIO_COMMAND,
58-
//| data=[board.SDIO_DATA],
58+
//| # Note that board.SDIO_DATA is a tuple of four pins, not an individual pin.
59+
//| data=board.SDIO_DATA,
60+
//| # On some boards, the data pins are named individually. Use this line instead.
61+
//| #data=(board.SDIO_DATA0, board.SDIO_DATA1, board.SDIO_DATA2, board.SDIO_DATA3),
5962
//| frequency=25000000)
6063
//| vfs = storage.VfsFat(sd)
6164
//| storage.mount(vfs, '/sd')

0 commit comments

Comments
 (0)