USB / BLE HID device communication in Python.
ThomasF last edited by
Is there a way to read and write data to a HID device in Pythonista.
Like shown here in this swift example:
Floyd22 last edited by Floyd22
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.