public enum PinMode extends Enum<PinMode>
Enum Constant and Description |
---|
ANALOG_INPUT |
ANALOG_OUTPUT |
DIGITAL_INPUT |
DIGITAL_OUTPUT |
GPIO_CLOCK |
PWM_OUTPUT |
PWM_TONE_OUTPUT |
SOFT_PWM_OUTPUT |
SOFT_TONE_OUTPUT |
Modifier and Type | Method and Description |
---|---|
static EnumSet<PinMode> |
all() |
static EnumSet<PinMode> |
allAnalog() |
static EnumSet<PinMode> |
allDigital() |
static EnumSet<PinMode> |
allInputs() |
static EnumSet<PinMode> |
allOutput() |
PinDirection |
getDirection() |
String |
getName() |
int |
getValue() |
String |
toString() |
static PinMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PinMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PinMode DIGITAL_INPUT
public static final PinMode DIGITAL_OUTPUT
public static final PinMode PWM_OUTPUT
public static final PinMode GPIO_CLOCK
public static final PinMode SOFT_PWM_OUTPUT
public static final PinMode SOFT_TONE_OUTPUT
public static final PinMode PWM_TONE_OUTPUT
public static final PinMode ANALOG_INPUT
public static final PinMode ANALOG_OUTPUT
public static PinMode[] values()
for (PinMode c : PinMode.values()) System.out.println(c);
public static PinMode 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 PinDirection getDirection()
public static EnumSet<PinMode> allDigital()
Copyright © 2012–2021 Pi4J. All rights reserved.