Skip to content

Commit 6949ebc

Browse files
authored
Merge pull request #1648 from lesamouraipourpre/metronome
CLUE Metronome: Update for CP7
2 parents f3ed191 + d621655 commit 6949ebc

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

CLUE_Metronome/clue_metronome.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
clue.display.brightness = 1.0
1818
clue.pixel.brightness = 0.2
19-
screen = displayio.Group(max_size=11)
19+
screen = displayio.Group()
2020
TEAL = 0x009E98
2121
LT_TEAL = 0x000F0F
2222
GRAY = 0x02403E
@@ -40,15 +40,15 @@
4040

4141
# title text
4242
title_label = label.Label(
43-
terminalio.FONT, text="Metronome", scale=4, color=TEAL, max_glyphs=11
43+
terminalio.FONT, text="Metronome", scale=4, color=TEAL
4444
)
4545
title_label.x = 14
4646
title_label.y = 26
4747
screen.append(title_label)
4848

4949
# interval text
5050
interval_label = label.Label(
51-
terminalio.FONT, text=("{} BPM".format(tempo)), scale=5, color=WHITE, max_glyphs=7
51+
terminalio.FONT, text="{} BPM".format(tempo), scale=5, color=WHITE
5252
)
5353
interval_label.x = 20
5454
interval_label.y = 95
@@ -65,18 +65,17 @@
6565
# Signature text
6666
sig_label = label.Label(
6767
terminalio.FONT,
68-
text=("{}/4".format(time_signature)),
68+
text="{}/4".format(time_signature),
6969
scale=3,
7070
color=BLACK,
71-
max_glyphs=3,
7271
)
7372
sig_label.x = 30
7473
sig_label.y = 160
7574
screen.append(sig_label)
7675

7776
# play text
7877
play_label = label.Label(
79-
terminalio.FONT, text=(" play"), scale=3, color=BLACK, max_glyphs=5
78+
terminalio.FONT, text=" play", scale=3, color=BLACK
8079
)
8180
play_label.x = 138
8281
play_label.y = 160
@@ -88,7 +87,7 @@
8887

8988
# increment label
9089
increment_label = label.Label(
91-
terminalio.FONT, text=("-1 +1"), scale=3, color=GRAY, max_glyphs=8
90+
terminalio.FONT, text="-1 +1", scale=3, color=GRAY
9291
)
9392
increment_label.x = 3
9493
increment_label.y = 220

0 commit comments

Comments
 (0)