public static enum Pin.Mode extends Enum<Pin.Mode>
Enum Constant and Description |
---|
ANALOG
Analog pin in analog input mode
|
ENCODER
Pin configured for rotary encoders
|
I2C
Pin included in I2C setup
|
IGNORED
Pin configured to be ignored by digitalWrite and capabilityResponse
|
INPUT
Digital pin in input mode
|
ONEWIRE
Pin configured for 1-wire
|
OUTPUT
Digital pin in output mode
|
PULLUP
Enable internal pull-up resistor for pin
|
PWM
Digital pin in PWM output mode
|
SERIAL
Pin configured for serial communication
|
SERVO
Digital pin in Servo output mode
|
SHIFT
shiftIn/shiftOut mode
|
STEPPER
Pin configured for stepper motor
|
UNSUPPORTED
Indicates a mode that this client library doesn't support
|
Modifier and Type | Method and Description |
---|---|
static Pin.Mode |
resolve(byte modeToken)
Resolves a mode-token from firmata message to enum value.
|
static Pin.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Pin.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Pin.Mode INPUT
public static final Pin.Mode OUTPUT
public static final Pin.Mode ANALOG
public static final Pin.Mode PWM
public static final Pin.Mode SERVO
public static final Pin.Mode SHIFT
public static final Pin.Mode I2C
public static final Pin.Mode ONEWIRE
public static final Pin.Mode STEPPER
public static final Pin.Mode ENCODER
public static final Pin.Mode SERIAL
public static final Pin.Mode PULLUP
public static final Pin.Mode UNSUPPORTED
public static final Pin.Mode IGNORED
public static Pin.Mode[] values()
for (Pin.Mode c : Pin.Mode.values()) System.out.println(c);
public static Pin.Mode 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 Pin.Mode resolve(byte modeToken)
modeToken
- token that stands for modeCopyright © 2017. All rights reserved.