Package com.tinkerforge
Interface BrickletAccelerometer.AccelerationReachedListener
-
- All Superinterfaces:
DeviceListener
,java.util.EventListener
,TinkerforgeListener
- Enclosing class:
- BrickletAccelerometer
public static interface BrickletAccelerometer.AccelerationReachedListener extends DeviceListener
This listener is triggered when the threshold as set byBrickletAccelerometer.setAccelerationCallbackThreshold(char, short, short, short, short, short, short)
is reached. The parameters are the X, Y and Z acceleration. The range is configured withBrickletAccelerometer.setConfiguration(short, short, short)
. If the threshold keeps being reached, the listener is triggered periodically with the period as set byBrickletAccelerometer.setDebouncePeriod(long)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accelerationReached(short x, short y, short z)
-