Enum Class CanandcolorDigitalOutput

java.lang.Object
java.lang.Enum<CanandcolorDigitalOutput>
com.reduxrobotics.sensors.canandcolor.CanandcolorDigitalOutput
All Implemented Interfaces:
Serializable, Comparable<CanandcolorDigitalOutput>, Constable

public enum CanandcolorDigitalOutput extends Enum<CanandcolorDigitalOutput>
Represents the digital outputs on the Canandcolor. The Canandcolor has two digital output pads: DIGOUT1 and DIGOUT2. They can be configured to output high or low values at 3.3v logic depending on sensor value conditions.
  • Enum Constant Details

    • kDigout1

      public static final CanandcolorDigitalOutput kDigout1
      Enum representing the pad silkscreened as OUT1 on the Canandcolor.
    • kDigout2

      public static final CanandcolorDigitalOutput kDigout2
      Enum representing the pad silkscreened as OUT2 on the Canandcolor.
  • Method Details

    • values

      public static CanandcolorDigitalOutput[] 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 CanandcolorDigitalOutput 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