TwoWire::endTransmission() returns a boolean that is true if successful, then it should return a byte, which indicates the status of the transmission:
0:success
1:data too long to fit in transmit buffer
2:received NACK on transmit of address
3:received NACK on transmit of data
4:other error
TwoWire::endTransmission() returns a boolean that is true if successful, then it should return a byte, which indicates the status of the transmission: 0:success 1:data too long to fit in transmit buffer 2:received NACK on transmit of address 3:received NACK on transmit of data 4:other error