IMU.accelerationAvailable always return false

I used code from the example for my BLE nano 33. IMU can be initialized, but it seems data is always not available, so I don't see any print of IMU data on seerial.
BTW, I already switched to use Arduino_BMI270_BMM150.h. Using LSM6DS3.h causes begin() call failure.
Thanks!

  float x, y, z;

  if (IMU.accelerationAvailable()) {
    IMU.readAcceleration(x, y, z);

    Serial.print(x);
    Serial.print('\t');
    Serial.print(y);
    Serial.print('\t');
    Serial.println(z);
  }

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.