Skip to content

Commit a44892d

Browse files
hemanth7787dpgeorge
authored andcommitted
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).
1 parent 524ff30 commit a44892d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/sdcard/sdcard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Example usage on ESP8266:
1515
1616
import machine, sdcard, os
17-
sd = sdcard.SDCard(machine.SPI(0), machine.Pin(15))
17+
sd = sdcard.SDCard(machine.SPI(1), machine.Pin(15))
1818
os.umount()
1919
os.VfsFat(sd, "")
2020
os.listdir()

0 commit comments

Comments
 (0)