Turning off the LED's and removing the key labels is easy - you just create a new .py file in the macro folder containing the app template but use 0x000000 for all LED colors and don't set any key labels or name the app dict. But you are still left with a bright white rectangle at the top of the screen.
My simple solution is to invert the colors of the rectangle and text. Where the rectangle was drawn with fill=0xFFFFFFF, it becomes 0x000000 and visa versa for the text line bellow it.
Code: Select all
# Set up displayio group with all the labels
group = displayio.Group()
for key_index in range(12):
x = key_index % 3
y = key_index // 3
group.append(label.Label(terminalio.FONT, text='', color=0xFFFFFF,
anchored_position=((macropad.display.width - 1) * x / 2,
macropad.display.height - 1 -
(3 - y) * 12),
anchor_point=(x / 2, 1.0)))
group.append(Rect(0, 0, macropad.display.width, 12, fill=0x000000))
group.append(label.Label(terminalio.FONT, text='', color=0xFFFFFF,
anchored_position=(macropad.display.width//2, -2),
anchor_point=(0.5, 0.0)))
macropad.display.show(group)