|  | 
| 16 | 16 | 
 | 
| 17 | 17 | clue.display.brightness = 1.0 | 
| 18 | 18 | clue.pixel.brightness = 0.2 | 
| 19 |  | -screen = displayio.Group(max_size=11) | 
|  | 19 | +screen = displayio.Group() | 
| 20 | 20 | TEAL = 0x009E98 | 
| 21 | 21 | LT_TEAL = 0x000F0F | 
| 22 | 22 | GRAY = 0x02403E | 
|  | 
| 40 | 40 | 
 | 
| 41 | 41 | # title text | 
| 42 | 42 | 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 | 
| 44 | 44 | ) | 
| 45 | 45 | title_label.x = 14 | 
| 46 | 46 | title_label.y = 26 | 
| 47 | 47 | screen.append(title_label) | 
| 48 | 48 | 
 | 
| 49 | 49 | # interval text | 
| 50 | 50 | 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 | 
| 52 | 52 | ) | 
| 53 | 53 | interval_label.x = 20 | 
| 54 | 54 | interval_label.y = 95 | 
|  | 
| 65 | 65 | # Signature text | 
| 66 | 66 | sig_label = label.Label( | 
| 67 | 67 |     terminalio.FONT, | 
| 68 |  | -    text=("{}/4".format(time_signature)), | 
|  | 68 | +    text="{}/4".format(time_signature), | 
| 69 | 69 |     scale=3, | 
| 70 | 70 |     color=BLACK, | 
| 71 |  | -    max_glyphs=3, | 
| 72 | 71 | ) | 
| 73 | 72 | sig_label.x = 30 | 
| 74 | 73 | sig_label.y = 160 | 
| 75 | 74 | screen.append(sig_label) | 
| 76 | 75 | 
 | 
| 77 | 76 | # play text | 
| 78 | 77 | 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 | 
| 80 | 79 | ) | 
| 81 | 80 | play_label.x = 138 | 
| 82 | 81 | play_label.y = 160 | 
|  | 
| 88 | 87 | 
 | 
| 89 | 88 | # increment label | 
| 90 | 89 | 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 | 
| 92 | 91 | ) | 
| 93 | 92 | increment_label.x = 3 | 
| 94 | 93 | increment_label.y = 220 | 
|  | 
0 commit comments