Hey everyone,
I started using the beta Raspberry Pi support last night and it’s mostly good (like a beta ). Problem is, the Wire.endTransmission() doesn’t seem to return the correct error code. I got the code below to work last night. Seems that the endTransmission method doesn’t return the expected 0 for success…
Wire.beginTransmission(address);
Wire.write(cmd);
Wire.endTransmission(false);
//if (Wire.endTransmission(false) == 0) {
Wire.requestFrom(address, 1, true);
if (Wire.available()) {
cmd = Wire.read();
is_success = true;
}
//}