public static interface Mma8452qAccelerometer.TapConfigEditor extends Mma8452qAccelerometer.DetectionConfigEditor<Mma8452qAccelerometer.TapConfigEditor>
Modifier and Type | Method and Description |
---|---|
Mma8452qAccelerometer.TapConfigEditor |
enableLowPassFilter()
Set how the tap detection should processes the data
|
Mma8452qAccelerometer.TapConfigEditor |
setAxis(Mma8452qAccelerometer.Axis axis)
Sets the axis to detect tapping on
|
Mma8452qAccelerometer.TapConfigEditor |
setLatency(int latency)
Set the latency value
|
Mma8452qAccelerometer.TapConfigEditor |
setWindow(int window)
Set the window value
|
commit, setDuration, setThreshold
Mma8452qAccelerometer.TapConfigEditor setLatency(int latency)
latency
- Wait time, in ms, between the end of the 1st shock and
when the 2nd shock can be detectedMma8452qAccelerometer.TapConfigEditor setWindow(int window)
window
- Time, in ms, in which a second shock must begin after
the latency expiresMma8452qAccelerometer.TapConfigEditor enableLowPassFilter()
Mma8452qAccelerometer.TapConfigEditor setAxis(Mma8452qAccelerometer.Axis axis)
axis
- Axis to detect tapping