circuitpython/nrf5/examples/mountsd.py

9 lines
155 B
Python

import os
from machine import SPI, Pin
from sdcard import SDCard
def mount_sd():
sd = SDCard(SPI(0), Pin("A22", mode=Pin.OUT))
os.mount(sd, '/')