Other Parts Discussed in Thread: CC2650
I was configuring proximity sensor TMD2672 with cc2650 launch pad using i2c interface, and i am unable to read sensor data from the buffer. I have included the code that uses i2c.h as source code.
Kindly resolve at the earliest.
handle = I2C_open(Board_I2C0, ¶ms);
i2cTrans.writeCount = 0;
i2cTrans.writeBuf = txBuf;
i2cTrans.readCount = 1;
i2cTrans.readBuf = rxBuf;
i2cTrans.slaveAddress = 0x39;
I2C_transfer(handle, &i2cTrans);