Merge pull request #960 from johnbintz/patch-1

Add SPI import to SD card upload example
pull/962/head
Hel Gibbons 2024-06-14 11:27:52 +01:00 zatwierdzone przez GitHub
commit f18f1ba259
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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")