66key 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
1111import os
1212import displayio
2525
2626class 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
5051MACROPAD = MacroPad ()
5152MACROPAD .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
5556GROUP = displayio .Group (max_size = 14 ) # 12 keys + rect + app name
5657for 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