1.介绍6626模拟I2C的写读示例 main(void) { // virtually mpu6050I2cInit(); while(1) { uint8_t data[5] = {0x01,0x02,0x03,0x04,0x05}; mpu6050_i2cWrite(0xa0,0x02,data,5);//8bit addr DRV_DELAY_MS(500); mpu6050_i2cRead(0xa0,0x02,data,5);//8bit addr DRV_DELAY_MS(500); } } |