We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21def3e + 7650b27 commit 501721fCopy full SHA for 501721f
adafruit_macropad.py
@@ -403,10 +403,9 @@ def keyboard_layout(self):
403
if macropad.encoder_switch:
404
macropad.keyboard_layout.write("Hello World")
405
"""
406
- if self._keyboard is None:
407
- self._keyboard = Keyboard(usb_hid.devices)
+ if self._keyboard_layout is None:
408
# This will need to be updated if we add more layouts. Currently there is only US.
409
- self._keyboard_layout = KeyboardLayoutUS(self._keyboard)
+ self._keyboard_layout = KeyboardLayoutUS(self.keyboard)
410
return self._keyboard_layout
411
412
@property
0 commit comments