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
When the Wire.requestFrom returns, the I2C bus transaction has completely finished and the received data is in a buffer in the Wire library. The Wire.available returns the number of bytes in that buffer. Those bytes can be read from the buffer with Wire.read. There is no need to wait to read something from that buffer (the internal buffer inside the Wire library).
The text was updated successfully, but these errors were encountered:
Thanks for pointing that out ! If you have made those modifications, please create a pull request. I don't work anymore on this project but it might be more effective for others.
In the file BMP085.ino https://github.com/cedtat/GY-80-sensor-samples/tree/master/BMP085 there is three times a while-loop after Wire.requestFrom. Those while-loops can be removed.
When the Wire.requestFrom returns, the I2C bus transaction has completely finished and the received data is in a buffer in the Wire library. The Wire.available returns the number of bytes in that buffer. Those bytes can be read from the buffer with Wire.read. There is no need to wait to read something from that buffer (the internal buffer inside the Wire library).
The text was updated successfully, but these errors were encountered: