class SD – secure digital memory card¶
The SD card class allows to configure and enable the memory card
module of the WiPy and automatically mount it as /sd
as part
of the file system. There are several pin combinations that can be
used to wire the SD card socket to the WiPy and the pins used can
be specified in the constructor. Please check the pinout and alternate functions
table. for
more info regarding the pins which can be remapped to be used with a SD card.
Example usage:
# data, clk and cmd pins must be passed along with
# their respective alternate functions
sd = pyb.SD('GP15', 8, 'GP10', 6, 'GP11', 6)
sd.enable() # enable and mount the SD card
sd.disable() # disable and unmount it