Re: [pyusb-users] 32 bit integer

2010-09-06 Thread Wander Lairson
You just cannot send it this way.. You have to break it down in bytes, store them in a list and send it... 2010/9/6 Kaan AKŞİT : > Dear all, > > I am having some trouble with sending 32 bit integers with write function of > endpoint class. > > I am having trouble with the following line: > > self.

[pyusb-users] 32 bit integer

2010-09-06 Thread Kaan AKŞİT
Dear all, I am having some trouble with sending 32 bit integers with write function of endpoint class. I am having trouble with the following line: self.ep.write(240) Output: Traceback (most recent call last): File "usbir.py", line 114, in sys.exit(main()) File "usbir.py", line 10