Here are some additional details:
When I initially scan for the I2C bus, it says:
Scanning...
I2C device found at address 0x70
After pressing the reset button in AtomS3, it says:
Scanning...
I2C device found at address 0x44
I2C device found at address 0x70
I2C device found at address 0x76
I tried using Wire.end() to end all I2C communication, but the addresses still remains open. How to close them?
void scanI2CBus()
{
byte error, address;
Serial.println("Scanning...");
for (address = 1; address < 127; address++)
{
// The I2C address 0x00 is reserved and the addresses should be between 0x01 and 0x7F
Wire.beginTransmission(address);
error = Wire.endTransmission();
if (error == 0)
{
Serial.print("I2C device found at address 0x");
if (address < 16)
{
Serial.print("0");
}
Serial.print(address, HEX);
}
}
}