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 TypeMethodDescriptionintgetPin()Return the pin number to monitor.voidpinChanged(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:GpioListenerCalled when an input pin changes state.- Specified by:
pinChangedin interfaceGpioListener- Parameters:
pin- the pin numberstate- the pin state
-
getHandle
-