Reference Language | Libraries | Comparison | Changes
Returns true if a motion is detected
CurieIMU.motionDetected(int axis, int direction)
axis: the axis to check for motion detection. It must have one of these values:
direction: the direction to check for motion detection. It must have one of these values:
true or false if the motion is detected or not on the axis and direction specified.
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.