Skip to content

Commit 01cab3c

Browse files
authored
Merge pull request adafruit#1117 from jepler/jeplayer
Jeplayer updates
2 parents 8a8b7a1 + 382bbb6 commit 01cab3c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CircuitPython_JEplayer_mp3/code.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ def __init__(self):
7272
self.group = displayio.Group(max_size=4)
7373
self.glyph_width, self.glyph_height = font.get_bounding_box()[:2]
7474
self.pbar = ProgressBar(0, 0, board.DISPLAY.width,
75-
self.glyph_height, bar_color=0x0000ff,
75+
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))
-9.07 KB
Binary file not shown.

0 commit comments

Comments
 (0)