Using multiple I2C

Ameba board provides three I2C sets. Corresponding pins can be found in the figure below. 2 From version 1.0.6, multiple I2C sets can be used simultaneously. Please define the number of I2C sets required in Wire.h: #define WIRE_COUNT 1 Then you can access multiple I2C as follows:
void setup() {
   Wire.begin();
   Wire1.begin();
   Wire.requestFrom(8, 6);    // request 6 bytes from slave device #8
   Wire1.requestFrom(4, 6);    // request 6 bytes from slave device #4
}
Copyrights ©瑞晟微电子(苏州)有限公司 2021. All rights reserved.
Please confirm that QQ communication software is installed