Package com.pi4j.io.gpio
Enum RaspiPinNumberingScheme
- java.lang.Object
-
- java.lang.Enum<RaspiPinNumberingScheme>
-
- com.pi4j.io.gpio.RaspiPinNumberingScheme
-
- All Implemented Interfaces:
Serializable
,Comparable<RaspiPinNumberingScheme>
public enum RaspiPinNumberingScheme extends Enum<RaspiPinNumberingScheme>
Raspberry Pi pin numbering scheme.- Author:
- Robert Savage (http://www.savagehomeautomation.com)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BROADCOM_PIN_NUMBERING
DEFAULT_PIN_NUMBERING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RaspiPinNumberingScheme
valueOf(String name)
Returns the enum constant of this type with the specified name.static RaspiPinNumberingScheme[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT_PIN_NUMBERING
public static final RaspiPinNumberingScheme DEFAULT_PIN_NUMBERING
-
BROADCOM_PIN_NUMBERING
public static final RaspiPinNumberingScheme BROADCOM_PIN_NUMBERING
-
-
Method Detail
-
values
public static RaspiPinNumberingScheme[] 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 (RaspiPinNumberingScheme c : RaspiPinNumberingScheme.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RaspiPinNumberingScheme 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
-
-