7

Can I interact with essentially any HID device from a Pi? (displays, controllers, etc) ?

If so, is there a python example out there that shows reading from hid?

Piotr Kula
  • 17,307
  • 6
  • 65
  • 104

1 Answers1

13

You can use the python wrapper for libusb PYUSB to programmatically read and write to a HID device from python.

Please look at my answer on this question for some ideas on how to achieve this.The library is fairly easy to use.There is also a good beginner tutorial on the website.

Please note that pyUsb can only help getting data in and out of the HID device.Decoding the data is another story.You might need to use usb loggers to decode the data.

SteveIrwin
  • 1,718
  • 2
  • 18
  • 31