public static interface AccelerometerMma8452q.ShakeConfigEditor extends ConfigEditorBase
Modifier and Type | Method and Description |
---|---|
AccelerometerMma8452q.ShakeConfigEditor |
axis(CartesianAxis axis)
Set the axis to detect shaking motion
|
AccelerometerMma8452q.ShakeConfigEditor |
duration(int duration)
Set the minimum amount of time that continuous high-pass filtered acceleration exceeds the threshold
|
AccelerometerMma8452q.ShakeConfigEditor |
threshold(float threshold)
Set the threshold that the high-pass filtered acceleration must exceed to trigger an interrupt
|
commit
AccelerometerMma8452q.ShakeConfigEditor axis(CartesianAxis axis)
axis
- Axis to detect shakingAccelerometerMma8452q.ShakeConfigEditor threshold(float threshold)
threshold
- Threshold limit, in g'sAccelerometerMma8452q.ShakeConfigEditor duration(int duration)
duration
- Duration for the condition to be met, in ms