public class GpioPinDigitalStateChangeEvent extends GpioPinEvent
pin, type
source
Constructor and Description |
---|
GpioPinDigitalStateChangeEvent(Object obj,
GpioPin pin,
PinState state)
Default event constructor
|
Modifier and Type | Method and Description |
---|---|
PinState |
getState()
Get the new pin state raised in this event.
|
getEventType, getPin
getSource, toString
public GpioPinDigitalStateChangeEvent(Object obj, GpioPin 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.