Skip to content

Commit ba2b655

Browse files
committed
sdcardio: add a note about sharing the SPI bus with SD cards and other devices
Similar to adafruit/Adafruit_CircuitPython_SD#44
1 parent 5ba28e9 commit ba2b655

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

shared-bindings/sdcardio/SDCard.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@
5555
//| Data transfers use the specified baurate (rounded down to one that is supported by
5656
//| the microcontroller)
5757
//|
58+
//| .. important::
59+
//| If the same SPI bus is shared with other peripherals, it is important that
60+
//| the SD card be initialized before accessing any other peripheral on the bus.
61+
//| Failure to do so can prevent the SD card from being recognized until it is
62+
//| powered off or re-inserted.
63+
//|
5864
//| Example usage:
5965
//|
6066
//| .. code-block:: python

0 commit comments

Comments
 (0)