Skip to content

Commit

Permalink
Merge pull request #960 from johnbintz/patch-1
Browse files Browse the repository at this point in the history
Add SPI import to SD card upload example
  • Loading branch information
helgibbons authored Jun 14, 2024
2 parents 7a2ebe5 + f495fb8 commit f18f1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion micropython/examples/inky_frame/image_gallery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Alternatively, you can transfer them using Thonny, but you will have to mount th
```python
import os
import sdcard
from machine import Pin
from machine import Pin, SPI
sd_spi = SPI(0, sck=Pin(18, Pin.OUT), mosi=Pin(19, Pin.OUT), miso=Pin(16, Pin.OUT))
sd = sdcard.SDCard(sd_spi, Pin(22))
os.mount(sd, "/sd")
Expand Down

0 comments on commit f18f1ba

Please sign in to comment.