File tree Expand file tree Collapse file tree 4 files changed +11
-0
lines changed
CircuitPython_sdcardio_sdioio Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 5
5
import time
6
6
import os
7
7
8
+ # pylint: disable=unused-import
9
+ import mount_sd # You must create a module mount_sd.py that mounts your sd card!
8
10
9
11
# First, just write the file 'hello.txt' to the card
10
12
with open ("/sd/hello.txt" , "w" ) as f :
Original file line number Diff line number Diff line change 4
4
5
5
import os
6
6
7
+ # pylint: disable=unused-import
8
+ import mount_sd # You must create a module mount_sd.py that mounts your sd card!
9
+
7
10
def print_directory (path , tabs = 0 ):
8
11
for file in os .listdir (path ):
9
12
stats = os .stat (path + "/" + file )
Original file line number Diff line number Diff line change 8
8
import digitalio
9
9
import microcontroller
10
10
11
+ # pylint: disable=unused-import
12
+ import mount_sd # You must create a module mount_sd.py that mounts your sd card!
13
+
11
14
led = digitalio .DigitalInOut (board .D13 )
12
15
led .direction = digitalio .Direction .OUTPUT
13
16
Original file line number Diff line number Diff line change 8
8
import board
9
9
import digitalio
10
10
11
+ # pylint: disable=unused-import
12
+ import mount_sd # You must create a module mount_sd.py that mounts your sd card!
13
+
11
14
# Updating the display can interfere with MP3 playback if it is not
12
15
# done carefully
13
16
try :
You can’t perform that action at this time.
0 commit comments