Arduino_BMI270_BMM150 - accelerationSampleRate()

Return the IMU’s accelerometer sample rate.

Syntax

IMU.accelerationSampleRate()

Parameters

None.

Returns

The IMU’s accelerometer sample rate in Hz.

Example

Serial.print("Accelerometer sample rate = ");
Serial.print(IMU.accelerationSampleRate());
Serial.println(" Hz");
Serial.println();
Serial.println("Acceleration in g's");
Serial.println("X\tY\tZ");

See also