adafruit / Adafruit_CircuitPython_Register

Python data descriptor classes to represent hardware registers on I2C devices.
MIT License
47 stars 21 forks source link

Fix off-by-one, replace write/read with write_then_readinto, allow straddling bits #22

Closed ladyada closed 5 years ago

ladyada commented 5 years ago

fix off by one that caused https://github.com/adafruit/Adafruit_CircuitPython_CCS811/issues/28

replace two i2c calls with one, this will make non-repeated-start chips work on linux (yay linux)

allow any position on RWBits (can be multibyte)