Skip to content

Commit f495fb8

Browse files
authored
Add SPI import to SD card upload example
As the code exists now, you won't be able to mount the SD card due to the missing import.
1 parent 7a2ebe5 commit f495fb8

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)