summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp32
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-02-02 13:51:18 +1100
committerDamien George <damien@micropython.org>2024-02-07 13:25:10 +1100
commit4c56b39051b4a992d8691aa504cd2e76b958bf26 (patch)
tree9bd5e19a08626bf26c222c3e093e65916ce147b0 /docs/esp32
parent7d28789544e4e35d8c931b41765dd64a53c506f1 (diff)
downloadmicropython-4c56b39051b4a992d8691aa504cd2e76b958bf26.tar.gz
micropython-4c56b39051b4a992d8691aa504cd2e76b958bf26.zip
docs: Use vfs module instead of os.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/esp32')
-rw-r--r--docs/esp32/quickref.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/esp32/quickref.rst b/docs/esp32/quickref.rst
index 08df25b055..9c77dc402e 100644
--- a/docs/esp32/quickref.rst
+++ b/docs/esp32/quickref.rst
@@ -650,15 +650,15 @@ SD card
See :ref:`machine.SDCard <machine.SDCard>`. ::
- import machine, os
+ import machine, os, vfs
# Slot 2 uses pins sck=18, cs=5, miso=19, mosi=23
sd = machine.SDCard(slot=2)
- os.mount(sd, '/sd') # mount
+ vfs.mount(sd, '/sd') # mount
os.listdir('/sd') # list directory contents
- os.umount('/sd') # eject
+ vfs.umount('/sd') # eject
RMT
---