Commit eb304bbf authored by Alyx's avatar Alyx
Browse files

add more display text

parent f9740ef5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -129,6 +129,10 @@ def playTrack(track_path, port):
# Get a random thing from the music folder
# from https://codereview.stackexchange.com/questions/202749/pick-a-random-file-from-a-directory-tree
def queueRandom(music_path):
    statusmsg = f"Stopped:\nChoosing a random file"
    updateDisplay(str.encode(statusmsg))
    morbital.setDeviceLED(display, 0, 3)

    fn_prefix = "player_functions.py/queueRandom"
    file_list = list(Path(music_path).glob(f"**/*.mid"))
    if not len(file_list):