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.
InterruptListener
s 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 TypeMethodDescriptionvoid
onInterrupt
(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
- thePin
on which the interrupt occurred.
-