Skip to content

Commit 1937c26

Browse files
Update for protected-access fixes; wait for next bundle build before PR merge
1 parent e0852f3 commit 1937c26

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Macropad_Hotkeys/code.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
key sequences.
77
"""
88

9-
# pylint: disable=import-error, unused-import, too-few-public-methods, protected-access
9+
# pylint: disable=import-error, unused-import, too-few-public-methods
1010

1111
import os
1212
import displayio
@@ -25,7 +25,8 @@
2525

2626
class App:
2727
""" Class representing a host-side application, for which we have a set
28-
of macro sequences. """
28+
of macro sequences. Project code was originally more complex and
29+
this was helpful, but maybe it's excessive now?"""
2930
def __init__(self, appdata):
3031
self.name = appdata['name']
3132
self.macros = appdata['macros']
@@ -49,9 +50,9 @@ def switch(self):
4950

5051
MACROPAD = MacroPad()
5152
MACROPAD.display.auto_refresh = False
52-
MACROPAD._pixels.auto_write = False
53+
MACROPAD.pixels.auto_write = False
5354

54-
# Set up displayio group with all labels
55+
# Set up displayio group with all the labels
5556
GROUP = displayio.Group(max_size=14) # 12 keys + rect + app name
5657
for KEY_INDEX in range(12):
5758
x = KEY_INDEX % 3
@@ -136,7 +137,7 @@ def switch(self):
136137
else:
137138
MACROPAD.keyboard.release(item)
138139
else:
139-
MACROPAD._keyboard_layout.write(item)
140+
MACROPAD.keyboard_layout.write(item)
140141
else:
141142
# Release any still-pressed modifier keys
142143
for item in SEQUENCE:

0 commit comments

Comments
 (0)