diff options
author | Mike Causer <mcauser@gmail.com> | 2021-04-30 14:04:37 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-05-06 15:48:09 +1000 |
commit | a111889705649465b2fd57a1f10bd34aae9b4435 (patch) | |
tree | 204548dffd9cbfa2bffe862cb492f1600e4f565a /docs/esp32 | |
parent | a65942a41d5bedd80b0098b1578680e72bef384b (diff) | |
download | micropython-a111889705649465b2fd57a1f10bd34aae9b4435.tar.gz micropython-a111889705649465b2fd57a1f10bd34aae9b4435.zip |
docs/esp32: Add SDCard to quickref.
Diffstat (limited to 'docs/esp32')
-rw-r--r-- | docs/esp32/quickref.rst | 15 |
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 --- |