I tried to use sensor controller, BME280 with cc1310 launchpad. Here is my code for getting device ID. But it did not getting correct value. Can someone help me?
i2cStart();
i2cTx(0x77 | I2C_OP_WRITE);
i2cTx(0xd0);
if (state.i2cStatus == 0x0000) {
i2cRepeatedStart();
i2cTx(0x77 | I2C_OP_READ);
i2cRxAck(output.value);
}
i2cStop();
// Schedule the next execution
fwScheduleTask(1);