Skip to content

Commit 1ed6889

Browse files
committed
fix for new hid API in the pyruler video panic button
1 parent 4d3d566 commit 1ed6889

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PyRuler_Video_Panic/code.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
from adafruit_hid.keyboard import Keyboard
1313
from adafruit_hid.keycode import Keycode
1414
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
15-
kbd = Keyboard()
15+
import usb_hid
16+
kbd = Keyboard(usb_hid.devices)
1617
layout = KeyboardLayoutUS(kbd)
1718

1819
#print(dir(board), os.uname()) # Print a little about ourselves

0 commit comments

Comments
 (0)