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.

@FunctionalInterface public static interface MCP23S17.InterruptListener
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 Type
    Method
    Description
    void
    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

      void onInterrupt(boolean capturedValue, MCP23S17.Pin pin)
      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 - the Pin on which the interrupt occurred.