public class PinEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
protected Pin |
pin |
protected PinEventType |
type |
source
Constructor and Description |
---|
PinEvent(Object obj,
Pin pin,
PinEventType type)
Default event constructor
|
Modifier and Type | Method and Description |
---|---|
PinEventType |
getEventType() |
Pin |
getPin()
Get the pin number that changed and raised this event.
|
getSource, toString
protected final PinEventType type
public PinEvent(Object obj, Pin pin, PinEventType type)
obj
- Ignore this parameterpin
- GPIO pin number (not header pin number; not wiringPi pin number)public Pin getPin()
public PinEventType getEventType()
Copyright © 2012–2021 Pi4J. All rights reserved.