请教一下大家, CC3200 通过 I2C 怎么读取 温湿度传感器 SHT20。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
刚才的错误解决了,是地址写错了。
现在是 I2C_IF_Write(0x40, aucDataBuf,1,0); ucStop 写0 可以, 写1 程序在这里死循环:
RET_IF_ERR(I2CTransact(I2C_MASTER_CMD_BURST_SEND_STOP));
如果在Write的时候, ucStop 写0 , 让写操作成功。
在 I2C_IF_Read(0x40, aucDataBuf, 2); 读的时候, 也卡死在
RET_IF_ERR(I2CTransact(I2C_MASTER_CMD_BURST_SEND_STOP));
请教一下是什么原因?