summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp32
diff options
context:
space:
mode:
Diffstat (limited to 'docs/esp32')
-rw-r--r--docs/esp32/quickref.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/esp32/quickref.rst b/docs/esp32/quickref.rst
index 5e70275830..a569ff0a4e 100644
--- a/docs/esp32/quickref.rst
+++ b/docs/esp32/quickref.rst
@@ -424,6 +424,21 @@ Notes:
p1 = Pin(4, Pin.OUT, None)
+SD card
+-------
+
+See :ref:`machine.SDCard <machine.SDCard>`. ::
+
+ import machine, uos
+
+ # Slot 2 uses pins sck=18, cs=5, miso=19, mosi=23
+ sd = machine.SDCard(slot=2)
+ uos.mount(sd, "/sd") # mount
+
+ uos.listdir('/sd') # list directory contents
+
+ uos.umount('/sd') # eject
+
RMT
---