# I2C_Interactive **Repository Path**: ShadowThreeD/i2c-interactive ## Basic Information - **Project Name**: I2C_Interactive - **Description**: 用CC2652RB实现了I2C的master-slave通信 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-03-29 - **Last Updated**: 2022-05-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # I2C_Interactive #### 介绍 用CC2652RB实现了I2C的Slave,用CC2652R1实现了I2C的Master,并成功通信。 #### 使用说明 1. 通过以下命令下载使用本仓库: ```bash git clone --branch=I2C_master https://gitee.com/ShadowThreeD/i2c-interactive.git ./I2C_master git clone --branch=I2C_slave https://gitee.com/ShadowThreeD/i2c-interactive.git ./I2C_slave ``` 2. 本项目的master例程是基于TI的"simplelink_cc13x2_26x2_sdk_4_30_00_54\examples\rtos\CC26X2R1_LAUNCHXL\drivers\i2copt3001_cpp\tirtos\ccs"例程开发的, slave例程是基于TI的"simplelink_cc13x2_26x2_sdk_4_30_00_54\examples\rtos\CC2652RB_LAUNCHXL\drivers\empty\tirtos\ccs"例程利用DriverLib开发的,所以这两个工程都需要和"tirtos_builds_cc13x2_cc26x2_release_ccs"工程一起才能编译成功并正常工作。 3. 目前跑久了有时候会有数据接收失败的情况发送! 4. master 和 slave 一共需要接 3 根线:(markdown制表前必须要有一个空行!) | Master | Slave | DIO | | :----------: | :----------: | :----: | | SCL | SCL | DIO 4 | | SDA | SDA | DIO 5 | | GND | GND | - |