Package com.diozero.firmata
Enum FirmataProtocol.PinMode
- java.lang.Object
-
- java.lang.Enum<FirmataProtocol.PinMode>
-
- com.diozero.firmata.FirmataProtocol.PinMode
-
- All Implemented Interfaces:
Serializable,Comparable<FirmataProtocol.PinMode>
- Enclosing interface:
- FirmataProtocol
public static enum FirmataProtocol.PinMode extends Enum<FirmataProtocol.PinMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANALOG_INPUTDIGITAL_INPUTDIGITAL_OUTPUTENCODERI2CINPUT_PULLUPONEWIREPWMSERIALSERVOSHIFTSTEPPERUNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisOutput()static FirmataProtocol.PinModevalueOf(int mode)Returns the enum constant of this type with the specified name.static FirmataProtocol.PinModevalueOf(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.
-
-
-
Enum Constant Detail
-
DIGITAL_INPUT
public static final FirmataProtocol.PinMode DIGITAL_INPUT
-
DIGITAL_OUTPUT
public static final FirmataProtocol.PinMode DIGITAL_OUTPUT
-
ANALOG_INPUT
public static final FirmataProtocol.PinMode ANALOG_INPUT
-
PWM
public static final FirmataProtocol.PinMode PWM
-
SERVO
public static final FirmataProtocol.PinMode SERVO
-
SHIFT
public static final FirmataProtocol.PinMode SHIFT
-
I2C
public static final FirmataProtocol.PinMode I2C
-
ONEWIRE
public static final FirmataProtocol.PinMode ONEWIRE
-
STEPPER
public static final FirmataProtocol.PinMode STEPPER
-
ENCODER
public static final FirmataProtocol.PinMode ENCODER
-
SERIAL
public static final FirmataProtocol.PinMode SERIAL
-
INPUT_PULLUP
public static final FirmataProtocol.PinMode INPUT_PULLUP
-
UNKNOWN
public static final FirmataProtocol.PinMode UNKNOWN
-
-
Method Detail
-
values
public static FirmataProtocol.PinMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FirmataProtocol.PinMode c : FirmataProtocol.PinMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FirmataProtocol.PinMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
public static FirmataProtocol.PinMode valueOf(int mode)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
mode- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isOutput
public boolean isOutput()
-
-