I2CDevice was passing None as a default value for end in read and write operations on busio.I2C objects. The busio.I2C documentation says that None will work, but it does not: len(buf) must be passed instead as the default.
If busio.I2C were fixed to allow None, this change could be reverted.
Fixes #44.
I2CDevice was passing
None
as a default value forend
in read and write operations onbusio.I2C
objects. Thebusio.I2C
documentation says thatNone
will work, but it does not:len(buf)
must be passed instead as the default.If
busio.I2C
were fixed to allowNone
, this change could be reverted.