Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions CLUE_Metronome/clue_metronome.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

clue.display.brightness = 1.0
clue.pixel.brightness = 0.2
screen = displayio.Group(max_size=11)
screen = displayio.Group()
TEAL = 0x009E98
LT_TEAL = 0x000F0F
GRAY = 0x02403E
Expand All @@ -40,15 +40,15 @@

# title text
title_label = label.Label(
terminalio.FONT, text="Metronome", scale=4, color=TEAL, max_glyphs=11
terminalio.FONT, text="Metronome", scale=4, color=TEAL
)
title_label.x = 14
title_label.y = 26
screen.append(title_label)

# interval text
interval_label = label.Label(
terminalio.FONT, text=("{} BPM".format(tempo)), scale=5, color=WHITE, max_glyphs=7
terminalio.FONT, text="{} BPM".format(tempo), scale=5, color=WHITE
)
interval_label.x = 20
interval_label.y = 95
Expand All @@ -65,18 +65,17 @@
# Signature text
sig_label = label.Label(
terminalio.FONT,
text=("{}/4".format(time_signature)),
text="{}/4".format(time_signature),
scale=3,
color=BLACK,
max_glyphs=3,
)
sig_label.x = 30
sig_label.y = 160
screen.append(sig_label)

# play text
play_label = label.Label(
terminalio.FONT, text=(" play"), scale=3, color=BLACK, max_glyphs=5
terminalio.FONT, text=" play", scale=3, color=BLACK
)
play_label.x = 138
play_label.y = 160
Expand All @@ -88,7 +87,7 @@

# increment label
increment_label = label.Label(
terminalio.FONT, text=("-1 +1"), scale=3, color=GRAY, max_glyphs=8
terminalio.FONT, text="-1 +1", scale=3, color=GRAY
)
increment_label.x = 3
increment_label.y = 220
Expand Down