From f495fb8b70170f3dd2d93bc8d8db3f5bfc27568c Mon Sep 17 00:00:00 2001 From: John Bintz <27256+johnbintz@users.noreply.github.com> Date: Fri, 14 Jun 2024 06:08:11 -0400 Subject: [PATCH] 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. --- micropython/examples/inky_frame/image_gallery/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micropython/examples/inky_frame/image_gallery/README.md b/micropython/examples/inky_frame/image_gallery/README.md index 4974775d..ae36d847 100644 --- a/micropython/examples/inky_frame/image_gallery/README.md +++ b/micropython/examples/inky_frame/image_gallery/README.md @@ -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")