Skip to content

Commit 9db74a9

Browse files
committed
jeplayer: Don't show icons until playing
1 parent d085703 commit 9db74a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CircuitPython_JEplayer_mp3/code.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self):
7575
self.glyph_height*2, bar_color=0x0000ff,
7676
outline_color=0x333333, stroke=1)
7777
self.iconbar = icons.IconBar()
78-
self.iconbar.group.y = 112
78+
self.iconbar.group.y = 1000
7979
for i in range(5, 8):
8080
self.iconbar.icons[i].x += 32
8181
self.label = adafruit_display_text.label.Label(font, line_spacing=1.0,
@@ -471,6 +471,7 @@ def play_all(playlist, *, folder='', trim=0, location='/sd'):
471471
'folder' is a display name for the user."""
472472
i = 0
473473
board.DISPLAY.show(playback_display.group)
474+
playback_display.iconbar.group.y = 112
474475
while 0 <= i < len(playlist):
475476
filename = playlist[i]
476477
i = play_one_file(i, join(location, filename), folder, filename[trim:-4], len(playlist))

0 commit comments

Comments
 (0)