Class PinDigitalStateChangeEvent

    • Constructor Detail

      • PinDigitalStateChangeEvent

        public PinDigitalStateChangeEvent​(Object obj,
                                          Pin pin,
                                          PinState 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

      • getState

        public PinState getState()
        Get the new pin state raised in this event.
        Returns:
        GPIO pin state (HIGH, LOW)
      • getEdge

        public PinEdge getEdge()
        Get the pin edge for the state change caused by this event.
        Returns: