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
The Wire.beginTransmission() and Wire.endTransmission() should only be used when writing data.
The Wire.requestFrom() does the whole I2C session on its own, it should not be used together with those functions to write data.
See also my alternative explanation of the functions of the Wire library.
The Wire.beginTransmission() and Wire.endTransmission() should only be used when writing data.
The Wire.requestFrom() does the whole I2C session on its own, it should not be used together with those functions to write data.
See also my alternative explanation of the functions of the Wire library.
I noticed a Wire.beginTransmission() and Wire.endTransmission() around a Wire.requestFrom() in the function Arduino_i2c_read() in the file RawButtonDemoCode.ino.
https://github.com/MatrixOrbital/GTT-Arduino-RawButton-Demo/blob/master/ArduinoCode/RawButtonDemoCode/RawButtonDemoCode.ino
Those Wire.beginTransmission() and Wire.endTransmission() may be removed.
Explanation: Common-mistakes, number 2 and 3.
In a other repository is a Wire.beginTransmission() before the Wire.requestFrom(), in the function i2cRead() in the file GTT_Arduino_Thermometer_Demo.ino.
https://github.com/MatrixOrbital/GTT-Arduino-Thermometer-Demo/blob/master/GTT_Arduino_Thermometer_Demo/GTT_Arduino_Thermometer_Demo.ino
The text was updated successfully, but these errors were encountered: