All major package managers provide PyUSB versions >= 1.0.0 by default.
LUFA used an older, incompatible version, which lead to broken
BulkVendor and GenericHID demo applications for new users.
Also, update the PyUSB homepage URL as the old one is unreachable.
pattern on the target board. Send and received report data is printed to
the terminal.
pattern on the target board. Send and received report data is printed to
the terminal.
- Requires the PyUSB library (http://sourceforge.net/apps/trac/pyusb/).
+ Requires PyUSB >= 1.0.0 (https://github.com/pyusb/pyusb).
print("Connected to device 0x%04X/0x%04X - %s [%s]" %
(hid_device.idVendor, hid_device.idProduct,
print("Connected to device 0x%04X/0x%04X - %s [%s]" %
(hid_device.idVendor, hid_device.idProduct,
- usb.util.get_string(hid_device, 256, hid_device.iProduct),
- usb.util.get_string(hid_device, 256, hid_device.iManufacturer)))
+ usb.util.get_string(hid_device, hid_device.iProduct),
+ usb.util.get_string(hid_device, hid_device.iManufacturer)))
receive a continuous stream of packets to/from to the device, to show
bidirectional communications.
receive a continuous stream of packets to/from to the device, to show
bidirectional communications.
- Requires the pyUSB library (http://sourceforge.net/projects/pyusb/).
+ Requires PyUSB >= 1.0.0 (https://github.com/pyusb/pyusb).
print("Connected to device 0x%04X/0x%04X - %s [%s]" %
(vendor_device.idVendor, vendor_device.idProduct,
print("Connected to device 0x%04X/0x%04X - %s [%s]" %
(vendor_device.idVendor, vendor_device.idProduct,
- usb.util.get_string(vendor_device, 255, vendor_device.iProduct),
- usb.util.get_string(vendor_device, 255, vendor_device.iManufacturer)))
+ usb.util.get_string(vendor_device, vendor_device.iProduct),
+ usb.util.get_string(vendor_device, vendor_device.iManufacturer)))