(no title)
jespern | 2 years ago
import hid
VID = 0x046D
HID = 0xB023 # 0xB35B
if __name__ == "__main__":
h = hid.device()
h.open(VID, HID)
h.set_nonblocking(1)
# this works for keyboard
# h.write([0x11, 0x01, 0x09, 0x1F, 0x01] + [0] * 15)
# this works for mouse
h.write([0x11, 0x01, 0x0A, 0x1E, 0x01] + [0] * 15)
h.close()
No comments yet.