Closed Koepel closed 3 years ago
Worse ... I seem to see a Wire.beginTransmission() which starts a write immediately followed by a Wire.requestFrom() ... which is used to read from the bus ... something smells awfully fishy here.
resolved, using BusIO
In two places there is a Wire.endTransmission after a Wire.requestFrom. The Wire.requestFrom is a complete I2C transmission on its own, it should not be followed by a Wire.endTransmission. The Wire.endTransmission transmits the bytes in the buffer that are written with Wire.write and waits until the I2C transmission (to write date) has finished.