Package com.pi4j.io.gpio.event
Class PinDigitalStateChangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.pi4j.io.gpio.event.PinEvent
-
- com.pi4j.io.gpio.event.PinDigitalStateChangeEvent
-
- All Implemented Interfaces:
Serializable
public class PinDigitalStateChangeEvent extends PinEvent
GPIO digital pin state change event.- Author:
- Robert Savage (http://www.savagehomeautomation.com)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description PinDigitalStateChangeEvent(Object obj, Pin 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.PinEvent
getEventType, getPin
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-