Interface MCP23S17.InterruptListener
- Enclosing class:
- MCP23S17
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface representing an interrupt listener callback.
InterruptListeners are registered via
addGlobalListener on MCP23S17 objects and
addListener on PinView objects, and removed by the
similarly-named methods.- Author:
- Robert Russell
-
Method Summary
Modifier and TypeMethodDescriptionvoidonInterrupt(boolean capturedValue, MCP23S17.Pin pin) Called whenever an interrupt occurs on a pin for which this listener is registered to receive events.
-
Method Details
-
onInterrupt
Called whenever an interrupt occurs on a pin for which this listener is registered to receive events.- Parameters:
capturedValue- the value on the pin at the time of the interrupt.pin- thePinon which the interrupt occurred.
-