Skip to content

Commit f18f1ba

Browse files
authored
Merge pull request #960 from johnbintz/patch-1
Add SPI import to SD card upload example
2 parents 7a2ebe5 + f495fb8 commit f18f1ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropython/examples/inky_frame/image_gallery/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Alternatively, you can transfer them using Thonny, but you will have to mount th
3131
```python
3232
import os
3333
import sdcard
34-
from machine import Pin
34+
from machine import Pin, SPI
3535
sd_spi = SPI(0, sck=Pin(18, Pin.OUT), mosi=Pin(19, Pin.OUT), miso=Pin(16, Pin.OUT))
3636
sd = sdcard.SDCard(sd_spi, Pin(22))
3737
os.mount(sd, "/sd")

0 commit comments

Comments
 (0)