summaryrefslogtreecommitdiff
path: root/shared-bindings
diff options
context:
space:
mode:
authorJeff Epler <jepler@unpythonic.net>2021-02-09 10:07:12 -0600
committerJeff Epler <jepler@unpythonic.net>2021-02-09 10:07:21 -0600
commitba2b65586f154e118300008d58e28e86c29b81cd (patch)
tree616836c4c76ae1a9d87ab434a3d948a243bfb8d8 /shared-bindings
parent5ba28e9861b0b4101198a834953fcbd5f3e7b0f3 (diff)
sdcardio: add a note about sharing the SPI bus with SD cards and other devices
Similar to https://github.com/adafruit/Adafruit_CircuitPython_SD/pull/44
Diffstat (limited to 'shared-bindings')
-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