public class Gpio extends Object
Defines a Gpio using the combination of Pin, Direction and Signal
Gpio are instantiated by the GpioBridge by calling GpioBridge.getGpio(Pin, Direction)
The Gpio's Signal is always updated by the GpioBridge when a new Signal is read or
written.
| Modifier and Type | Method and Description |
|---|---|
Direction |
getDirection() |
String |
getKernelName() |
String |
getLabel() |
Pin |
getPin() |
Signal |
getSignal() |
Gpio |
setLabel(String label)
Allows the user to set a label for this pin, e.g.
|
String |
toString() |
public String getKernelName()
public Gpio setLabel(String label)
label - the label to set, e.g. "Green Button", "Red Led"Gpio for call chainingpublic String getLabel()
public String toString()
toString in class ObjectPin.toString()Copyright © 2017. All rights reserved.