Package com.pi4j.jni

Class AnalogInputEvent

    • Constructor Detail

      • AnalogInputEvent

        public AnalogInputEvent​(Object obj,
                                int pin,
                                double value)

        Default event constructor

        Parameters:
        obj - Ignore this parameter
        pin - GPIO pin number (not header pin number; not wiringPi pin number)
        value - New GPIO analog input value.
    • 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)
      • getValue

        public double getValue()
        Get the new pin analog input value raised in this event.
        Returns:
        analog input value