SD
The SD card class allows to configure and enable the memory card module of your Pycom module and automatically mount it as /sd
as part of the file system. There is a single pin combination that can be used for the SD card, and the current implementation only works in 1-bit mode. The pin connections are as follows:
P8: DAT0
, P23: SCLK
and P4: CMD
(no external pull-up resistors are needed)
If you have one of the Pycom expansion boards, then simply insert the card into the micro SD socket and run your script.
Quick Example Usage:
Constructors
class machine.SD(id, ...)
Methods
sd.init(id=0)
Enable the SD card.
sd.deinit()
Disable the SD card.
Last updated