sdcardio¶
Interface to an SD card via the SPI bus
-
class
sdcardio.SDCard(bus: busio.SPI, cs=digitalio.DigitalInOut, baudrate=8000000)¶ SD Card Block Interface
Controls an SD card over SPI. This built-in module has higher read performance than the library adafruit_sdcard, but it is only compatible with
busio.SPI, notbitbangio.SPI. Usually an SDCard object is used withstorage.VfsFatto allow file I/O to an SD card.-
count()¶ Returns the total number of sectors
Due to technical limitations, this is a function and not a property.
- Returns
The number of 512-byte blocks, as a number
-
deinit()¶ Disable permanently.
- Returns
None
-