jamesbowman / i2cdriver

I2CDriver open source tools
https://i2cdriver.com/
BSD 3-Clause "New" or "Revised" License
184 stars 57 forks source link

regrd with more than 255 bytes #28

Closed jamesbowman closed 4 years ago

jamesbowman commented 4 years ago

It is not currently possible to do a regrd() to receive more than 255 bytes.

The regrd() implementation should handle this by expanding the request to:

self.start(dev, 0)
self.write([reg])
self.start(dev, 1)
r = self.read(256)
self.stop()
jamesbowman commented 4 years ago

Fixed, closing.