Re: [pyusb-users] Corectness of Code

2011-01-31 Thread wander.lairson
2011/1/30 Benno Meier : > Hi there, > > I just started to use PyUSB and want to talk to an AVR. > > I ran into a problem with the ctrl_transfer method, here is my listing: > > import usb.core > import usb.util > > > vendorID = 0x16c0 > productID = 0x05dc > dev = usb.core.find(idVendor=vendorID, idP

[pyusb-users] Corectness of Code

2011-01-30 Thread Benno Meier
Hi there, I just started to use PyUSB and want to talk to an AVR. I ran into a problem with the ctrl_transfer method, here is my listing: import usb.core import usb.util vendorID = 0x16c0 productID = 0x05dc dev = usb.core.find(idVendor=vendorID, idProduct=productID) if dev is None: raise