diff options
| author | Damien George <damien@micropython.org> | 2024-02-02 13:51:18 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-02-07 13:25:10 +1100 |
| commit | 4c56b39051b4a992d8691aa504cd2e76b958bf26 (patch) | |
| tree | 9bd5e19a08626bf26c222c3e093e65916ce147b0 /docs/library/machine.SD.rst | |
| parent | 7d28789544e4e35d8c931b41765dd64a53c506f1 (diff) | |
docs: Use vfs module instead of os.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/library/machine.SD.rst')
| -rw-r--r-- | docs/library/machine.SD.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/library/machine.SD.rst b/docs/library/machine.SD.rst index c736dc4d2..b10b407a2 100644 --- a/docs/library/machine.SD.rst +++ b/docs/library/machine.SD.rst @@ -20,11 +20,11 @@ more info regarding the pins which can be remapped to be used with a SD card. Example usage:: from machine import SD - import os + import vfs # clk cmd and dat0 pins must be passed along with # their respective alternate functions sd = machine.SD(pins=('GP10', 'GP11', 'GP15')) - os.mount(sd, '/sd') + vfs.mount(sd, '/sd') # do normal file operations Constructors |
