You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the file SparkFunTMP102.cpp, in the function readRegister is a Wire.endTransmission after the Wire.requestFrom. That Wire.endTransmission can be removed, it is only used when writing data.
The Wire.requestFrom does a complete I2C transaction on its own. When Wire.requestFrom returns, the I2C transaction has completely finished and the received data is in a buffer in the Wire library.