circuitpython/nrf5/modules/mountsd.py

10 lines
156 B
Python

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