6626模拟I2C实例

yangzh · 65次点击 · 2周前

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);

    }

}

image.png


image.png


MPU6050_i2c-202409029494.rar
被收藏 0  ∙  0 赞  
加入收藏
点赞
0 回复  
善言善语 (您需要 登录 后才能回复 没有账号 ?)

请先登录网站