This file contains 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
import usb_hid | |
# https://stackoverflow.com/questions/36750287/two-byte-report-count-for-hid-report-descriptor | |
absolute_mouse = usb_hid.Device( | |
report_descriptor=bytes( | |
# Absolute mouse | |
(0x05, 0x01) # Usage Page (Generic Desktop) | |
+ (0x09, 0x02) # Usage (Mouse) | |
+ (0xA1, 0x01) # Collection (Application) | |
+ (0x09, 0x01) # Usage (Pointer) |
This file contains 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
Information for device USB-compliant keyboard (VID=0x062A PID=0x0201): | |
Connection Information: | |
------------------------------ | |
Device current bus speed: LowSpeed | |
Device supports USB 1.1 specification | |
Device supports USB 2.0 specification | |
Device address: 0x0009 | |
Current configuration value: 0x00 | |
Number of open pipes: 0 |