1 2 3 4 5 6 7 8
RD_VERSION = 0x00 def getVersion(dev): dev.send([RD_VERSION]) raw = dev.read(3) return raw[1] + raw[2] * 256