Reference   Language | Libraries | Comparison | Changes

CurieIMU

setAccelerometerOffset()

Description

Sets the value of accelerometer offset

Syntax

CurieIMU.setAccelerometerOffset(int axis, int offset)

Parameters

axis: the target axis. Can be one of these values:

  • X_AXIS
  • Y_AXIS
  • Z_AXIS

offset: The value of the offset for the selected axis. The value goes from -495.3 mg to + 495.3 mg independent of the range selected for the accelerometer; it varies in discrete steps of 3.9mg.

See also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.