public static interface AccelerometerMma8452q.TapConfigEditor extends ConfigEditorBase
Modifier and Type | Method and Description |
---|---|
AccelerometerMma8452q.TapConfigEditor |
axis(CartesianAxis axis)
Set the axis to detect tapping on
|
AccelerometerMma8452q.TapConfigEditor |
enableDoubleTap()
Enable double tap detection
|
AccelerometerMma8452q.TapConfigEditor |
enableSingleTap()
Enable single tap detection
|
AccelerometerMma8452q.TapConfigEditor |
interval(int interval)
Set the max time interval between the measured acceleration exceeding the threshold then falling
below the threshold.
|
AccelerometerMma8452q.TapConfigEditor |
latency(int latency)
Set the wait time between the end of the 1st shock and when the 2nd shock can be detected
|
AccelerometerMma8452q.TapConfigEditor |
threshold(float threshold)
Set the threshold that begins the tap detection procedure
|
AccelerometerMma8452q.TapConfigEditor |
window(int window)
Set the time in which a second shock must begin after the latency expires
|
commit
AccelerometerMma8452q.TapConfigEditor enableDoubleTap()
AccelerometerMma8452q.TapConfigEditor enableSingleTap()
AccelerometerMma8452q.TapConfigEditor latency(int latency)
latency
- New latency time, in millisecondsAccelerometerMma8452q.TapConfigEditor window(int window)
window
- New window time, in millisecondsAccelerometerMma8452q.TapConfigEditor axis(CartesianAxis axis)
axis
- Axis to detect tappingAccelerometerMma8452q.TapConfigEditor threshold(float threshold)
threshold
- Threshold limit, in units of gAccelerometerMma8452q.TapConfigEditor interval(int interval)
interval
- Pulse time interval, in ms