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
HardwareI2C::requestFrom() is either successful or it fails. It does a full I2C session with a START and STOP condition. When the HardwareI2C::requestFrom() function has returned, the I2C bus is idle. After that, it is not possible to wait from something with a idle I2C bus.
HardwareI2C::available() does not check the I2C bus, it checks the amount of read data in the software buffer in the Wire library.
Therefore, only the line with the HardwareI2C::requestFrom() function call is needed here.
Activity