Package com.tccc.kos.core.service.gpio
Class GpioInputPin
java.lang.Object
com.tccc.kos.core.service.gpio.GpioInputPin
- All Implemented Interfaces:
GpioListener
GPIO input pin bean.
- Version:
- Mar-6-18
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getPin()
Return the pin number to monitor.void
pinChanged
(int pin, boolean state) Called when an input pin changes state.
-
Constructor Details
-
GpioInputPin
public GpioInputPin()
-
-
Method Details
-
getPin
public int getPin()Return the pin number to monitor.- Returns:
- the GPIO pin number
-
pinChanged
public void pinChanged(int pin, boolean state) Description copied from interface:GpioListener
Called when an input pin changes state.- Specified by:
pinChanged
in interfaceGpioListener
- Parameters:
pin
- the pin numberstate
- the pin state
-
getHandle
-