This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure you install pyusb and libusb on your system yo | |
import usb.core | |
import usb.util | |
import usb.control | |
HID_INTERFACE = 0x02 | |
INPUT_ENDPOINT = 0x83 | |
OUTPUT_ENDPOINT = 0x3 | |
HID_PKT_SIZE = 64 |