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:
parent
690447cb1d
commit
a1905b5bfc
4 changed files with 11 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue