WPILibC++ 2026.2.2
Loading...
Searching...
No Matches
frc::AddressableLED::LEDData Class Reference

#include <frc/AddressableLED.h>

Inheritance diagram for frc::AddressableLED::LEDData:
HAL_AddressableLEDData

Public Member Functions

 LEDData ()
 
 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.
 
void SetHSV (int h, int s, int v)
 A helper method to set all values of the LED.
 
void SetLED (const Color &color)
 
void SetLED (const Color8Bit &color)
 

Additional Inherited Members

- Public Attributes inherited from HAL_AddressableLEDData
uint8_t b
 blue value
 
uint8_t g
 green value
 
uint8_t r
 red value
 
uint8_t padding
 

Constructor & Destructor Documentation

◆ LEDData() [1/2]

frc::AddressableLED::LEDData::LEDData ( )
inline

◆ LEDData() [2/2]

frc::AddressableLED::LEDData::LEDData ( int _r,
int _g,
int _b )
inline

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]

◆ SetLED() [1/2]

void frc::AddressableLED::LEDData::SetLED ( const Color & color)
inline

◆ SetLED() [2/2]

void frc::AddressableLED::LEDData::SetLED ( const Color8Bit & color)
inline

◆ 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: