Class GpioInputPin

java.lang.Object
com.tccc.kos.core.service.gpio.GpioInputPin
All Implemented Interfaces:
GpioListener

public class GpioInputPin extends Object implements GpioListener
GPIO input pin bean.
Version:
Mar-6-18
  • 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 interface GpioListener
      Parameters:
      pin - the pin number
      state - the pin state
    • getHandle

      public Handle getHandle()