Package com.tinkerforge
Interface BrickletDualButtonV2.StateChangedListener
-
- All Superinterfaces:
DeviceListener
,java.util.EventListener
,TinkerforgeListener
- Enclosing class:
- BrickletDualButtonV2
public static interface BrickletDualButtonV2.StateChangedListener extends DeviceListener
This listener is called whenever a button is pressed. Possible states for buttons are: * 0 = pressed * 1 = released Possible states for LEDs are: * 0 = AutoToggleOn: Auto toggle enabled and LED on. * 1 = AutoToggleOff: Auto toggle enabled and LED off. * 2 = On: LED on (auto toggle is disabled). * 3 = Off: LED off (auto toggle is disabled). This listener can be enabled withBrickletDualButtonV2.setStateChangedCallbackConfiguration(boolean)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
stateChanged(int buttonL, int buttonR, int ledL, int ledR)
-