Skip to content
Snippets Groups Projects
Commit a44892dd authored by Hemanth kumar's avatar Hemanth kumar Committed by Damien George
Browse files

drivers/sdcard: Update doc for ESP8266 to use correct SPI number.

machine.SPI(0) results in ValueError on ESP8266.  SPI(1) is the user
hardware SPI port (or use SPI(-1) for software SPI).
parent 524ff302
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ Example usage on pyboard:
Example usage on ESP8266:
import machine, sdcard, os
sd = sdcard.SDCard(machine.SPI(0), machine.Pin(15))
sd = sdcard.SDCard(machine.SPI(1), machine.Pin(15))
os.umount()
os.VfsFat(sd, "")
os.listdir()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment