Package com.ctre.phoenix.led
Enum TwinkleAnimation.TwinklePercent
java.lang.Object
java.lang.Enum<TwinkleAnimation.TwinklePercent>
com.ctre.phoenix.led.TwinkleAnimation.TwinklePercent
- All Implemented Interfaces:
Serializable
,Comparable<TwinkleAnimation.TwinklePercent>
,java.lang.constant.Constable
- Enclosing class:
- TwinkleAnimation
public static enum TwinkleAnimation.TwinklePercent extends Enum<TwinkleAnimation.TwinklePercent>
The percentage of LEDs that are allowed to be on at any one point
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description Percent100
All the LEDs are allowed to turn onPercent18
18% of LEDs are allowed to turn onPercent30
30% of LEDs are allowed to turn onPercent42
42% of LEDs are allowed to turn onPercent6
6% of LEDs are allowed to turn onPercent64
64% of LEDs are allowed to turn onPercent76
76% of LEDs are allowed to turn onPercent88
88% of LEDs are allowed to turn on -
Field Summary
Fields Modifier and Type Field Description int
value
-
Method Summary
Modifier and Type Method Description static TwinkleAnimation.TwinklePercent
valueOf(String name)
Returns the enum constant of this type with the specified name.static TwinkleAnimation.TwinklePercent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Percent100
All the LEDs are allowed to turn on -
Percent88
88% of LEDs are allowed to turn on -
Percent76
76% of LEDs are allowed to turn on -
Percent64
64% of LEDs are allowed to turn on -
Percent42
42% of LEDs are allowed to turn on -
Percent30
30% of LEDs are allowed to turn on -
Percent18
18% of LEDs are allowed to turn on -
Percent6
6% of LEDs are allowed to turn on
-
-
Field Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-