Package com.ctre.phoenix.led
Enum Class TwinkleAnimation.TwinklePercent
java.lang.Object
java.lang.Enum<TwinkleAnimation.TwinklePercent>
com.ctre.phoenix.led.TwinkleAnimation.TwinklePercent
- All Implemented Interfaces:
Serializable
,Comparable<TwinkleAnimation.TwinklePercent>
,Constable
- Enclosing class:
- TwinkleAnimation
The percentage of LEDs that are allowed to be on at any one point
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAll the LEDs are allowed to turn on18% of LEDs are allowed to turn on30% of LEDs are allowed to turn on42% of LEDs are allowed to turn on6% of LEDs are allowed to turn on64% of LEDs are allowed to turn on76% of LEDs are allowed to turn on88% of LEDs are allowed to turn on -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TwinkleAnimation.TwinklePercent[]
values()
Returns an array containing the constants of this enum class, 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
-
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
-