Closed ianccole closed 1 year ago
So, I failed to write bytes([0xff]) to I2C because i2c_write_data() is expecting a string that it can utf8 encode.
If I comment out the .encode("utf8") (Line 1116) it works.
I think writing strings to I2C devices is not very useful
ok makes sense, now i2c_write_data takes bytearray instead
Thanks for the quick fix. I'll pull that in.
So, I failed to write bytes([0xff]) to I2C because i2c_write_data() is expecting a string that it can utf8 encode.
If I comment out the .encode("utf8") (Line 1116) it works.
I think writing strings to I2C devices is not very useful