nrf5/modules: Updating mountsd, SD card test script with new params.

This commit is contained in:
Glenn Ruben Bakke 2016-12-27 15:42:35 +01:00
parent d6300a2e82
commit 9197739cf4

View File

@ -1,9 +1,8 @@
import os import os
from machine import SPI from machine import SPI, Pin
from pyb import Pin
from sdcard import SDCard from sdcard import SDCard
def mount_sd(): def mount_sd():
sd = SDCard(SPI(0), Pin("A22")) sd = SDCard(SPI(0), Pin("A22", mode=Pin.OUT))
os.mount(sd, '/') os.mount(sd, '/')