我想发送一个地址,两个字节内容,
txBuffer[0] = 0x01; txBuffer[1] = 0x02; i2cTransaction.slaveAddress = 0x40; i2cTransaction.writeBuf = txBuffer; i2cTransaction.writeCount = 2; i2cTransaction.readBuf = rxBuffer; i2cTransaction.readCount = 2;
这样设置发送可以吗?但是这样我用示波器看,只发送了(地址 和 txBuffer[0] = 0x01;)
user1741131:
回复 user4988634:
请问具体是什么原因?怎么修改成功的?我也遇到同样的问题。