From ba2b65586f154e118300008d58e28e86c29b81cd Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Tue, 9 Feb 2021 10:07:12 -0600 Subject: [PATCH] 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 --- shared-bindings/sdcardio/SDCard.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shared-bindings/sdcardio/SDCard.c b/shared-bindings/sdcardio/SDCard.c index 975f8b0953..35d6c14973 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