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 `. :: + + 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 ---