Module com.pi4j

Enum Class PinType

java.lang.Object
java.lang.Enum<PinType>
com.pi4j.boardinfo.definition.PinType
All Implemented Interfaces:
Serializable, Comparable<PinType>, Constable

public enum PinType extends Enum<PinType>
List of pin types in a header.
  • Enum Constant Details

    • POWER

      public static final PinType POWER
    • GROUND

      public static final PinType GROUND
    • DIGITAL

      public static final PinType DIGITAL
    • DIGITAL_AND_PWM

      public static final PinType DIGITAL_AND_PWM
    • DIGITAL_NO_PULL_DOWN

      public static final PinType DIGITAL_NO_PULL_DOWN
  • Method Details

    • values

      public static PinType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PinType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getLabel

      public String getLabel()
    • getColor

      public int getColor()