Skip to content

Commit 49ee608

Browse files
authored
Merge pull request #2758 from adafruit/fix-sdcard-examples
User must provide a mount_sd.py script
2 parents 690447c + a1905b5 commit 49ee608

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

CircuitPython_sdcardio_sdioio/benchmark/code.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import time
66
import 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
1012
with open("/sd/hello.txt", "w") as f:

CircuitPython_sdcardio_sdioio/list_files/code.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
import 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+
710
def print_directory(path, tabs=0):
811
for file in os.listdir(path):
912
stats = os.stat(path + "/" + file)

CircuitPython_sdcardio_sdioio/log_temperature/code.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
import digitalio
99
import 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+
1114
led = digitalio.DigitalInOut(board.D13)
1215
led.direction = digitalio.Direction.OUTPUT
1316

CircuitPython_sdcardio_sdioio/play_mp3s/code.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
import board
99
import 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
1316
try:

0 commit comments

Comments
 (0)