Class GpioInterruptEvent

    • Constructor Detail

      • GpioInterruptEvent

        public GpioInterruptEvent​(Object obj,
                                  int pin,
                                  boolean state)

        Default event constructor

        Parameters:
        obj - Ignore this parameter
        pin - GPIO pin number (not header pin number; not wiringPi pin number)
        state - New GPIO pin state.
    • Method Detail

      • getPin

        public int getPin()
        Get the pin number that changed and raised this event.
        Returns:
        GPIO pin number (not header pin number; not wiringPi pin number)
      • getState

        public boolean getState()
        Get the new pin state raised in this event.
        Returns:
        GPIO pin state (HIGH=true, LOW=false)
      • getStateValue

        public int getStateValue()
        Get the new pin state value raised in this event.
        Returns:
        GPIO pin state (HIGH=1, LOW=0)