From d2969048ff4a57d5ce519d868b9262d6f569c116 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Tue, 27 Dec 2016 16:05:49 +0100 Subject: [PATCH] nrf5/modules: Adding a function to get access to the SD card flash drive on the seeedstudio tft shield. --- nrf5/modules/seeedstudio_tft_shield_v2.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nrf5/modules/seeedstudio_tft_shield_v2.py b/nrf5/modules/seeedstudio_tft_shield_v2.py index 7d8038c0cd..e0daf1ca03 100644 --- a/nrf5/modules/seeedstudio_tft_shield_v2.py +++ b/nrf5/modules/seeedstudio_tft_shield_v2.py @@ -3,6 +3,12 @@ import time 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: def __init__(self, width, height):