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:
This library depends on the wiringPi native system library. (developed by Gordon Henderson @ http://wiringpi.com/)
source
Constructor and Description |
---|
AnalogInputEvent(Object obj,
int pin,
double value)
Default event constructor
|
Modifier and Type | Method and 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.
|
getSource, toString
public AnalogInputEvent(Object obj, int pin, double value)
obj
- Ignore this parameterpin
- GPIO pin number (not header pin number; not wiringPi pin number)value
- New GPIO analog input value.Copyright © 2012–2019 Pi4J. All rights reserved.