Skip to content

Commit 2908343

Browse files
authored
Merge pull request #1661 from lesamouraipourpre/hotkeys
Macropad Hotkeys: Update for CP7
2 parents 75f76df + c75c053 commit 2908343

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Macropad_Hotkeys/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ def switch(self):
5454
MACROPAD.pixels.auto_write = False
5555

5656
# Set up displayio group with all the labels
57-
GROUP = displayio.Group(max_size=14) # 12 keys + rect + app name
57+
GROUP = displayio.Group()
5858
for KEY_INDEX in range(12):
5959
x = KEY_INDEX % 3
6060
y = KEY_INDEX // 3
6161
GROUP.append(label.Label(terminalio.FONT, text='', color=0xFFFFFF,
6262
anchored_position=((MACROPAD.display.width - 1) * x / 2,
6363
MACROPAD.display.height - 1 -
6464
(3 - y) * 12),
65-
anchor_point=(x / 2, 1.0), max_glyphs=15))
65+
anchor_point=(x / 2, 1.0)))
6666
GROUP.append(Rect(0, 0, MACROPAD.display.width, 12, fill=0xFFFFFF))
6767
GROUP.append(label.Label(terminalio.FONT, text='', color=0x000000,
6868
anchored_position=(MACROPAD.display.width//2, -2),
69-
anchor_point=(0.5, 0.0), max_glyphs=30))
69+
anchor_point=(0.5, 0.0)))
7070
MACROPAD.display.show(GROUP)
7171

7272
# Load all the macro key setups from .py files in MACRO_FOLDER

0 commit comments

Comments
 (0)