ThomasF
Nov 01, 2021 - 19:10
Is there a way to read and write data to a HID device in Pythonista.
Like shown here in this swift example:
https://github.com/Arti3DPlayer/USBDeviceSwift/wiki/HID-device-communication
Is there a way to read and write data to a HID device in Pythonista.
Like shown here in this swift example:
https://github.com/Arti3DPlayer/USBDeviceSwift/wiki/HID-device-communication
Request value consists of the descriptor type as the high byte and the index of the interface as the low byte. Descriptor type in our case is HID Report or 0x22 (this is from the HID spec, specifically class descriptors). Index of the interface is the same as request index below. In my case it was 0x00, but yours may be different. Combining the high and low bit, we get 0x2200 for our request value.