kopia lustrzana https://github.com/micropython/micropython
drivers/sdcard: Update SD mounting example code for ESP8266.
rodzic
5591bd237a
commit
3759aa2cc9
|
@ -15,9 +15,8 @@ Example usage on ESP8266:
|
||||||
|
|
||||||
import machine, sdcard, os
|
import machine, sdcard, os
|
||||||
sd = sdcard.SDCard(machine.SPI(1), machine.Pin(15))
|
sd = sdcard.SDCard(machine.SPI(1), machine.Pin(15))
|
||||||
os.umount()
|
os.mount(sd, '/sd')
|
||||||
os.VfsFat(sd, "")
|
os.listdir('/')
|
||||||
os.listdir()
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue