Package com.pi4j.jni
Class AnalogInputEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.pi4j.jni.AnalogInputEvent
-
- All Implemented Interfaces:
Serializable
public class AnalogInputEvent extends EventObject
This class provides the event object for analog input value changes.
Before using the Pi4J library, you need to ensure that the Java VM in configured with access to the following system libraries:
- pi4j
- wiringPi
This library depends on the wiringPi native system library. (developed by Gordon Henderson @ http://wiringpi.com/)
- Author:
- Robert Savage (http://www.savagehomeautomation.com)
- See Also:
- https://pi4j.com/, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description AnalogInputEvent(Object obj, int pin, double value)
Default event constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPin()
Get the pin number that changed and raised this event.double
getValue()
Get the new pin analog input value raised in this event.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
AnalogInputEvent
public AnalogInputEvent(Object obj, int pin, double value)
Default event constructor
- Parameters:
obj
- Ignore this parameterpin
- GPIO pin number (not header pin number; not wiringPi pin number)value
- New GPIO analog input value.
-
-