summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2021-02-09 11:42:22 -0800
committerGitHub <noreply@github.com>2021-02-09 11:42:22 -0800
commitcd05aa52230f10c0613aa43082ef4487907dab8c (patch)
tree199bea35d193ef9b5cf64280ab34bf5219fbd83f
parentf88357a5df454364e95a9c6dff65c946a39197f4 (diff)
parentba2b65586f154e118300008d58e28e86c29b81cd (diff)
Merge pull request #4163 from jepler/spi-sharing-note
sdcardio: add a note about sharing the SPI bus with SD cards and other devices
-rw-r--r--shared-bindings/sdcardio/SDCard.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared-bindings/sdcardio/SDCard.c b/shared-bindings/sdcardio/SDCard.c
index 975f8b095..35d6c1497 100644
--- a/shared-bindings/sdcardio/SDCard.c
+++ b/shared-bindings/sdcardio/SDCard.c
@@ -55,6 +55,12 @@
//| Data transfers use the specified baurate (rounded down to one that is supported by
//| the microcontroller)
//|
+//| .. important::
+//| If the same SPI bus is shared with other peripherals, it is important that
+//| the SD card be initialized before accessing any other peripheral on the bus.
+//| Failure to do so can prevent the SD card from being recognized until it is
+//| powered off or re-inserted.
+//|
//| Example usage:
//|
//| .. code-block:: python