CTRE Phoenix C++ 5.33.1
StrobeAnimation.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#pragma once
3
5
6namespace ctre {namespace phoenix {namespace led {
7
8/**
9 * Animation that strobes the LEDs a specified color
10 */
12public:
13 /**
14 * Constructor for a StrobeAnimation
15 * @param r How much red should the color have [0, 255]
16 * @param g How much green should the color have [0, 255]
17 * @param b How much blue should the color have [0, 255]
18 * @param w How much white should the color have [0, 255]
19 * @param speed How fast should the color travel the strip [0, 1]
20 * @param numLed How many LEDs the CANdle controls
21 * @param ledOffset Where to start the animation
22 */
23 StrobeAnimation(int r, int g, int b, int w = 0, double speed = 1, int numLed = -1, int ledOffset = 0);
24};
25
26} // namespace led
27} // namespace phoenix
28} // namespace ctre
The base class for one generic type of animation.
Definition: BaseTwoSizeAnimation.h:12
Animation that strobes the LEDs a specified color.
Definition: StrobeAnimation.h:11
StrobeAnimation(int r, int g, int b, int w=0, double speed=1, int numLed=-1, int ledOffset=0)
Constructor for a StrobeAnimation.
namespace ctre
Definition: paramEnum.h:5