User must provide a mount_sd.py script

this import line was removed without checking, because it caused
a pylint message.
This commit is contained in:
Jeff Epler 2024-03-25 09:38:59 -05:00
parent 690447cb1d
commit a1905b5bfc
4 changed files with 11 additions and 0 deletions

View file

@ -5,6 +5,8 @@
import time
import os
# pylint: disable=unused-import
import mount_sd # You must create a module mount_sd.py that mounts your sd card!
# First, just write the file 'hello.txt' to the card
with open("/sd/hello.txt", "w") as f:

View file

@ -4,6 +4,9 @@
import os
# pylint: disable=unused-import
import mount_sd # You must create a module mount_sd.py that mounts your sd card!
def print_directory(path, tabs=0):
for file in os.listdir(path):
stats = os.stat(path + "/" + file)

View file

@ -8,6 +8,9 @@ import board
import digitalio
import microcontroller
# pylint: disable=unused-import
import mount_sd # You must create a module mount_sd.py that mounts your sd card!
led = digitalio.DigitalInOut(board.D13)
led.direction = digitalio.Direction.OUTPUT

View file

@ -8,6 +8,9 @@ import time
import board
import digitalio
# pylint: disable=unused-import
import mount_sd # You must create a module mount_sd.py that mounts your sd card!
# Updating the display can interfere with MP3 playback if it is not
# done carefully
try: