fix for new hid API in the pyruler video panic button
@@ -12,7 +12,8 @@ if ENABLE_KEYBOARD:
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
- kbd = Keyboard()
+ import usb_hid
+ kbd = Keyboard(usb_hid.devices)
layout = KeyboardLayoutUS(kbd)
#print(dir(board), os.uname()) # Print a little about ourselves
