summaryrefslogtreecommitdiff
path: root/docs/wipy
diff options
context:
space:
mode:
Diffstat (limited to 'docs/wipy')
-rw-r--r--docs/wipy/general.rst2
-rw-r--r--docs/wipy/quickref.rst4
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/wipy/general.rst b/docs/wipy/general.rst
index a1c8df8ef..bb7e59215 100644
--- a/docs/wipy/general.rst
+++ b/docs/wipy/general.rst
@@ -373,7 +373,7 @@ functions are defined in ``os`` module:
Mounts a block device (like an ``SD`` object) in the specified mount
point. Example::
- os.mount(sd, '/sd')
+ vfs.mount(sd, '/sd')
.. function:: unmount(path)
diff --git a/docs/wipy/quickref.rst b/docs/wipy/quickref.rst
index 4c3b969bd..d6abb8d1c 100644
--- a/docs/wipy/quickref.rst
+++ b/docs/wipy/quickref.rst
@@ -171,13 +171,13 @@ SD card
See :ref:`machine.SD <machine.SD>`. ::
from machine import SD
- import os
+ import vfs
# clock pin, cmd pin, data0 pin
sd = SD(pins=('GP10', 'GP11', 'GP15'))
# or use default ones for the expansion board
sd = SD()
- os.mount(sd, '/sd')
+ vfs.mount(sd, '/sd')
WLAN (WiFi)
-----------