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 55import time
66import os
77
8+ # pylint: disable=unused-import
9+ import mount_sd # You must create a module mount_sd.py that mounts your sd card!
810
911# First, just write the file 'hello.txt' to the card
1012with open ("/sd/hello.txt" , "w" ) as f :
Original file line number Diff line number Diff line change 44
55import os
66
7+ # pylint: disable=unused-import
8+ import mount_sd # You must create a module mount_sd.py that mounts your sd card!
9+
710def print_directory (path , tabs = 0 ):
811 for file in os .listdir (path ):
912 stats = os .stat (path + "/" + file )
Original file line number Diff line number Diff line change 88import digitalio
99import microcontroller
1010
11+ # pylint: disable=unused-import
12+ import mount_sd # You must create a module mount_sd.py that mounts your sd card!
13+
1114led = digitalio .DigitalInOut (board .D13 )
1215led .direction = digitalio .Direction .OUTPUT
1316
Original file line number Diff line number Diff line change 88import board
99import digitalio
1010
11+ # pylint: disable=unused-import
12+ import mount_sd # You must create a module mount_sd.py that mounts your sd card!
13+
1114# Updating the display can interfere with MP3 playback if it is not
1215# done carefully
1316try :
You can’t perform that action at this time.
0 commit comments