Hi vamshi,
You could add the following code to check whether the revision ID(0x03) matches the firmware?
int8_t BHYSensor::begin(uint8_t i2cAddress, TwoWire &wire) { deviceId = i2cAddress; revisionId; i2c = &wire; const uint8_t nTries = 5; uint8_t tries = nTries; uint8_t data;
i2c->begin();
while (tries > 0) { status = read(BHY_REG_PRODUCT_ID_ADDR, &data); revisionId = read(BHY_REG_REVISION_ID_ADDR, &data); --tries; ... } ... }
... View more