Tool/software: TI-RTOS
Software :Sensor controller Studio.
Iam Using cc2650 launchpad, Ambient Light Sensor(APDS-9306/APDS-9306-065),
Sensor controller is connected to cc2650, I want to write data and read the data through I2c my code is :->
i2cStart();
i2cTx(0x52);
i2cTx(I2C_OP_WRITE);
i2cRxAck(output.v);
i2cTx(0x00);
i2cRxAck(output.v2);
i2cTx(0x12);
i2cStop();
is it ok ,or i have to aproach another way.. Iam a Fresher i know just basics ,please help anyone.