Skip to content

Commit

Permalink
docs/esp32: Add SDCard to quickref.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcauser authored and dpgeorge committed May 6, 2021
1 parent a65942a commit a111889
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/esp32/quickref.rst
Expand Up @@ -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
---

Expand Down

0 comments on commit a111889

Please sign in to comment.