public interface GpioSignalListener
Interface to define a listener for changes to a Gpio's Signal when the Direction of the
Gpio is Direction.IN
Register the GpioSignalListener calling GpioBridge.register(Gpio, GpioSignalListener)
| Modifier and Type | Method and Description |
|---|---|
void |
notify(Gpio gpio)
Notifies the
GpioSignalListener when a change to the Gpio is detected |
void notify(Gpio gpio) throws Exception
GpioSignalListener when a change to the Gpio is detectedgpio - the Gpio for which the Signal changed. The actual signal is to be retrieved by calling
Gpio.getSignal()Exception - if something goes wrong while handling the signal changeCopyright © 2017. All rights reserved.