public class PinDigitalStateChangeEvent extends PinEvent
source
Constructor and Description |
---|
PinDigitalStateChangeEvent(Object obj,
Pin pin,
PinState state)
Default event constructor
|
Modifier and Type | Method and 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.
|
getEventType, getPin
getSource, toString
public PinDigitalStateChangeEvent(Object obj, Pin pin, PinState state)
obj
- Ignore this parameterpin
- GPIO pin number (not header pin number; not wiringPi pin number)state
- New GPIO pin state.Copyright © 2012–2019 Pi4J. All rights reserved.