WPILibC++  2020.3.2-60-g3011ebe
frc::AddressableLED::LEDData Class Reference
Inheritance diagram for frc::AddressableLED::LEDData:
HAL_AddressableLEDData

Public Member Functions

 LEDData (int _r, int _g, int _b)
 
void SetRGB (int r, int g, int b)
 A helper method to set all values of the LED. More...
 
void SetHSV (int h, int s, int v)
 A helper method to set all values of the LED. More...
 
void SetLED (const Color &color)
 
void SetLED (const Color8Bit &color)
 

Additional Inherited Members

- Public Attributes inherited from HAL_AddressableLEDData
uint8_t b
 
uint8_t g
 
uint8_t r
 
uint8_t padding
 

Member Function Documentation

◆ SetHSV()

void frc::AddressableLED::LEDData::SetHSV ( int  h,
int  s,
int  v 
)

A helper method to set all values of the LED.

Parameters
hthe h value [0-180]
sthe s value [0-255]
vthe v value [0-255]

◆ SetRGB()

void frc::AddressableLED::LEDData::SetRGB ( int  r,
int  g,
int  b 
)
inline

A helper method to set all values of the LED.

Parameters
rthe r value [0-255]
gthe g value [0-255]
bthe b value [0-255]

The documentation for this class was generated from the following file: