gbishop / cython-hidapi

Python wrapper for the hidapi (not active, use one of the forks)
Other
50 stars 56 forks source link

ARM distrib support and support for multiple identical devices through use of hid_open_path #8

Closed kelle62819 closed 10 years ago

kelle62819 commented 10 years ago

Current code base does not seem to support multiple devices with identical Vendor and Product IDs. This pull request adds an optional path argument to the device constructor. If omitted, it works as before. If present, device is created with the HIDAPI's hid_open_path function. Now enumerate can be used to find all devices and their paths, and then the device objects can be created using those paths.

Also added a new setup file, setup-arm.py, to replace the current i386 library that is being referenced.