diff options
author | Daniel Campora <daniel@wipy.io> | 2015-09-16 14:09:51 +0200 |
---|---|---|
committer | Daniel Campora <daniel@wipy.io> | 2015-09-21 22:30:32 +0200 |
commit | dffa9f6da65cd03e834b2ed3914f40428f72e49f (patch) | |
tree | 1f2e51f17c511f884db77e47d481c0f9c1b6bed2 /docs | |
parent | 660f8613fd8e38863998a9758d97eada0eebc47d (diff) | |
download | micropython-dffa9f6da65cd03e834b2ed3914f40428f72e49f.tar.gz micropython-dffa9f6da65cd03e834b2ed3914f40428f72e49f.zip |
cc3200: New SD and RTC API plus os and time modules' extensions.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/wipy/quickref.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/wipy/quickref.rst b/docs/wipy/quickref.rst index 8376e5b404..eb8a12e8be 100644 --- a/docs/wipy/quickref.rst +++ b/docs/wipy/quickref.rst @@ -158,11 +158,12 @@ SD card See :ref:`pyb.SD <pyb.SD>`. :: from pyb import SD + import os # SD card pins need special configuration so we pass them to the constructor - # data pin, data af, clock pin, clock af, cmd pin, cmd af - sd = pyb.SD(('GP15', 8, 'GP10', 6, 'GP11', 6)) - sd.mount() + # clock pin, cmd pin, data0 pin + sd = SD(pins=('GP10', 'GP11', 'GP15')) + os.mount(sd, '/sd') WLAN (WiFi) ----------- |