Package com.pi4j.io.gpio.event
Class GpioPinDigitalStateChangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.pi4j.io.gpio.event.GpioPinEvent
-
- com.pi4j.io.gpio.event.GpioPinDigitalStateChangeEvent
-
- All Implemented Interfaces:
Serializable
public class GpioPinDigitalStateChangeEvent extends GpioPinEvent
GPIO digital state pin value change event.- Author:
- Robert Savage (http://www.savagehomeautomation.com)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.pi4j.io.gpio.event.GpioPinEvent
pin, type
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description GpioPinDigitalStateChangeEvent(Object obj, GpioPin pin, PinState state)
Default event constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PinEdge
getEdge()
Get the pin edge for the state change caused by this event.PinState
getState()
Get the new pin state raised in this event.-
Methods inherited from class com.pi4j.io.gpio.event.GpioPinEvent
getEventType, getPin
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-