public enum Signal extends Enum<Signal>
Defines the Signal which a Gpio can have
A pin's signal is its current value. Depending on the Gpio's Direction, the signal is an input value,
or an output value.
A signal of LOW means that the value is 0, and a value of HIGH means the value is 1
| Modifier and Type | Method and Description |
|---|---|
Signal |
getOpposite() |
String |
getSignal() |
static Signal |
getSignal(int value)
Returns the
Signal enum for the given value |
static Signal |
getSignal(String valueS)
Returns the
Signal enum for the given string value |
int |
getValue() |
String |
getValueS() |
boolean |
isHigh() |
static Signal |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Signal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Signal[] values()
for (Signal c : Signal.values()) System.out.println(c);
public static Signal valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getValue()
public String getValueS()
public boolean isHigh()
public String getSignal()
Copyright © 2017. All rights reserved.