Package com.ctre.phoenix.led
Enum Class CANdle.LEDStripType
- All Implemented Interfaces:
Serializable
,Comparable<CANdle.LEDStripType>
,Constable
- Enclosing class:
- CANdle
The various LED types that the CANdle can support
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionLEDs that are controlled by Blue-Red-Green valuesLEDs that are controlled by Blue-Red-Green-White valuesLEDs that are controlled by Green-Red-Blue valuesLEDs that are controlled by Green-Red-Blue-White valuesLEDs that are controlled by Red-Green-Blue valuesLEDs that are controlled by Red-Green-Blue-White values -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CANdle.LEDStripType
valueOf
(double value) Get LEDStripType of specified valuestatic CANdle.LEDStripType
valueOf
(int value) Get LEDStripType of specified valuestatic CANdle.LEDStripType
Returns the enum constant of this class with the specified name.static CANdle.LEDStripType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GRB
LEDs that are controlled by Green-Red-Blue values -
RGB
LEDs that are controlled by Red-Green-Blue values -
BRG
LEDs that are controlled by Blue-Red-Green values -
GRBW
LEDs that are controlled by Green-Red-Blue-White values -
RGBW
LEDs that are controlled by Red-Green-Blue-White values -
BRGW
LEDs that are controlled by Blue-Red-Green-White values
-
-
Field Details
-
value
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
valueOf
Get LEDStripType of specified value- Parameters:
value
- value of LEDStripType- Returns:
- LEDStripType of specified value
-
valueOf
Get LEDStripType of specified value- Parameters:
value
- value of LEDStripType- Returns:
- LEDStripType of specified value
-