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.

Data transfer using i2c

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, &params);

i2cTrans.writeCount = 0;
i2cTrans.writeBuf = txBuf;
i2cTrans.readCount = 1;
i2cTrans.readBuf = rxBuf;
i2cTrans.slaveAddress = 0x39;

I2C_transfer(handle, &i2cTrans);