public static enum GPIO.Mode extends java.lang.Enum<GPIO.Mode>
GPIO.setMode(int, int, Mode)
Enum Constant and Description |
---|
ANALOG_INPUT
Analog input pin mode.
|
ANALOG_OUTPUT
Analog output pin mode.
|
DIGITAL_INPUT
Digital input pin mode.
|
DIGITAL_INPUT_PULLUP
Digital input with internal pull-up resistor pin mode.
|
DIGITAL_OUTPUT
Digital output pin mode.
|
Modifier and Type | Method and Description |
---|---|
static GPIO.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GPIO.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GPIO.Mode DIGITAL_INPUT
public static final GPIO.Mode DIGITAL_INPUT_PULLUP
public static final GPIO.Mode DIGITAL_OUTPUT
public static final GPIO.Mode ANALOG_INPUT
public static final GPIO.Mode ANALOG_OUTPUT
public static GPIO.Mode[] values()
for (GPIO.Mode c : GPIO.Mode.values()) System.out.println(c);
public static GPIO.Mode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null