Code: Alles auswählen
### read(bEndpointAddress, size_or_buffer, timeout ms )
## size_or_buffer = wMaxPacketSize = 0x20 = 1x 32 bytes (it *must* be an object of the type array)
data = dev.read(0x81, 36, 0) #len=29 ???
mit 36 "scheint" es stabiler zu laufen.
Es kommt jedenfalls zu:
Habe noch folgendes getestet:File "min.py", line 80, in <module>
print("Key: ", data[26])
IndexError: array index out of range
Funktioniern tut es allerdings prinzipiell, aber der genaue Typ ist wohl nicht richtig?#print("Length: ", len(data))
print("-------------")
#"".join(map(chr, data))
#data.tostring()
#print(data)
print("Key: ", data[26])
MfG
djevil