nrf5/modules: Adding a function to get access to the SD card flash drive on the seeedstudio tft shield.
This commit is contained in:
parent
cceea0a504
commit
d2969048ff
@ -3,6 +3,12 @@
|
|||||||
|
|
||||||
import time
|
import time
|
||||||
from machine import SPI, Pin
|
from machine import SPI, Pin
|
||||||
|
import os
|
||||||
|
from sdcard import SDCard
|
||||||
|
|
||||||
|
def mount_tf(self, mount_point="/"):
|
||||||
|
sd = SDCard(SPI(0), Pin("A15", mode=Pin.OUT))
|
||||||
|
os.mount(sd, mount_point)
|
||||||
|
|
||||||
class ILI9341:
|
class ILI9341:
|
||||||
def __init__(self, width, height):
|
def __init__(self, width, height):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user