kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Merge pull request #960 from johnbintz/patch-1
Add SPI import to SD card upload examplepull/962/head
commit
f18f1ba259
|
@ -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")
|
||||
|
|
Ładowanie…
Reference in New Issue