I am porting an Arduino cpp library (for the NAU7802 ADC) to the microbit. The ADC and microbit communicate over the I2C bus.
The library makes use of detecting the ACK from the slave device to verify it’s connected. For example:
if (_i2cPort->endTransmission() != 0)
return (false); //Sensor did not ACK
return (true); //All good
Is there a way to do this on the microbit?