[Tutor] Pyusb: get data via USB sent from mouse
W W
srilyk at gmail.com
Sun Mar 8 14:34:47 CET 2009
On Sat, Mar 7, 2009 at 9:35 AM, andré palma <andrefsp at gmail.com> wrote:
> Hi folks, I'm new on pyusb programming and to learn how to get data i'm
> trying to get data sent from my mouse.
> I've download a program called usbview( http://www.kroah.com/linux/usb/ ) to
> display the device descriptors of any USB device pluged to my computer.
> I made a peace of code that was supposed to get the data sent from my mouse
> but when i try to run it there is an error saying that the device is busy
> =S
I haven't used pyusb, but my guess is that because your window manager
is using the device already that it can't get a lock on it.
I've used pyserial for communicating with a USB device, but I've never
tried communication with a mouse.
HTH,
Wayne
More information about the Tutor
mailing list