Package com.ctre.phoenix.led
Class Animation
java.lang.Object
com.ctre.phoenix.led.Animation
- Direct Known Subclasses:
ColorFlowAnimation,FireAnimation,LarsonAnimation,RainbowAnimation,RgbFadeAnimation,SingleFadeAnimation,StrobeAnimation,TwinkleAnimation,TwinkleOffAnimation
Deprecated, for removal: This API element is subject to removal in a future version.
The base class for all animations that CANdle supports.
-
Constructor Summary
ConstructorsConstructorDescriptionAnimation(int idx, double speed, int numLed, int ledOffset) Deprecated, for removal: This API element is subject to removal in a future version.Constructor for an Animation class -
Method Summary
Modifier and TypeMethodDescriptionvoidsetLedOffset(int ledOffset) Deprecated, for removal: This API element is subject to removal in a future version.Sets where the animation will start along the LED stripvoidsetNumLed(int numLed) Deprecated, for removal: This API element is subject to removal in a future version.Sets the number of LEDs the animation will run onvoidsetSpeed(double speed) Deprecated, for removal: This API element is subject to removal in a future version.Sets the speed of the animation
-
Constructor Details
-
Animation
Deprecated, for removal: This API element is subject to removal in a future version.Constructor for an Animation class- Parameters:
idx- The animation-specific IDspeed- The rate at which the animation runs at. Higher is generally fasternumLed- The number of LEDs to run the animation onledOffset- Where to start the animation
-
-
Method Details
-
setSpeed
Deprecated, for removal: This API element is subject to removal in a future version.Sets the speed of the animation- Parameters:
speed- The rate at which the animation runs at. Higher is generally faster
-
setNumLed
Deprecated, for removal: This API element is subject to removal in a future version.Sets the number of LEDs the animation will run on- Parameters:
numLed- The number of LEDs to run the animation on
-
setLedOffset
Deprecated, for removal: This API element is subject to removal in a future version.Sets where the animation will start along the LED strip- Parameters:
ledOffset- Where to start the animation
-
If the Phoenix 5 API must be used for this device, the device must have 22.X firmware. This firmware is available in Tuner X after selecting Phoenix 5 in the firmware year dropdown.