public static enum FirmataProtocol.PinMode extends Enum<FirmataProtocol.PinMode>
| Enum Constant and Description |
|---|
ANALOG_INPUT |
DIGITAL_INPUT |
DIGITAL_OUTPUT |
ENCODER |
I2C |
INPUT_PULLUP |
ONEWIRE |
PWM |
SERIAL |
SERVO |
SHIFT |
STEPPER |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isOutput() |
static FirmataProtocol.PinMode |
valueOf(int mode) |
static FirmataProtocol.PinMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FirmataProtocol.PinMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FirmataProtocol.PinMode DIGITAL_INPUT
public static final FirmataProtocol.PinMode DIGITAL_OUTPUT
public static final FirmataProtocol.PinMode ANALOG_INPUT
public static final FirmataProtocol.PinMode PWM
public static final FirmataProtocol.PinMode SERVO
public static final FirmataProtocol.PinMode SHIFT
public static final FirmataProtocol.PinMode I2C
public static final FirmataProtocol.PinMode ONEWIRE
public static final FirmataProtocol.PinMode STEPPER
public static final FirmataProtocol.PinMode ENCODER
public static final FirmataProtocol.PinMode SERIAL
public static final FirmataProtocol.PinMode INPUT_PULLUP
public static final FirmataProtocol.PinMode UNKNOWN
public static FirmataProtocol.PinMode[] values()
for (FirmataProtocol.PinMode c : FirmataProtocol.PinMode.values()) System.out.println(c);
public static FirmataProtocol.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 static FirmataProtocol.PinMode valueOf(int mode)
public boolean isOutput()
Copyright © 2016–2018 mattjlewis. All rights reserved.