Class PinEvent

    • Constructor Detail

      • PinEvent

        public PinEvent​(Object obj,
                        Pin pin,
                        PinEventType type)
        Default event constructor
        Parameters:
        obj - Ignore this parameter
        pin - GPIO pin number (not header pin number; not wiringPi pin number)
    • Method Detail

      • getPin

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