mirror of
https://github.com/brmlab/edubrm.git
synced 2025-08-03 23:33:38 +02:00
use 64byte for messages
This commit is contained in:
parent
5089785e4a
commit
f482e0618f
3 changed files with 9 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import usb
|
||||
import time
|
||||
|
||||
usbdev = usb.core.find(idVendor=0x1fc9, idProduct=0x0003)
|
||||
|
||||
|
@ -16,5 +17,6 @@ epi = usb.util.find_descriptor(
|
|||
custom_match = lambda e: \
|
||||
usb.util.endpoint_direction(e.bEndpointAddress) == usb.util.ENDPOINT_IN)
|
||||
|
||||
print epo.write('@A')
|
||||
print epi.read(8)
|
||||
for i in xrange(1024):
|
||||
epo.write('@A')
|
||||
epi.read(64)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue