public static interface AccelerometerMma8452q.MovementConfigEditor extends ConfigEditorBase
| Modifier and Type | Method and Description |
|---|---|
AccelerometerMma8452q.MovementConfigEditor |
axes(CartesianAxis... axes)
Set the axes to be detected for movement
|
AccelerometerMma8452q.MovementConfigEditor |
duration(int duration)
Set the minimum amount of time that continuous measured acceleration matches the threshold condition
|
AccelerometerMma8452q.MovementConfigEditor |
threshold(float threshold)
Set the threshold for movement detection
|
commitAccelerometerMma8452q.MovementConfigEditor axes(CartesianAxis... axes)
axes - Axes to detect movementAccelerometerMma8452q.MovementConfigEditor threshold(float threshold)
threshold - Threshold limit, in units of gAccelerometerMma8452q.MovementConfigEditor duration(int duration)
duration - Duration for the condition to be met, in ms