7#include <initializer_list>
69 this->
r = color.
red * 255;
70 this->
g = color.
green * 255;
71 this->
b = color.
blue * 255;
115 void SetData(std::span<const LEDData> ledData);
125 void SetData(std::initializer_list<LEDData> ledData);
138 void SetBitTiming(units::nanosecond_t highTime0, units::nanosecond_t lowTime0,
139 units::nanosecond_t highTime1,
140 units::nanosecond_t lowTime1);
Definition: AddressableLED.h:31
LEDData()
Definition: AddressableLED.h:33
void SetLED(const Color8Bit &color)
Definition: AddressableLED.h:79
void SetHSV(int h, int s, int v)
A helper method to set all values of the LED.
void SetRGB(int r, int g, int b)
A helper method to set all values of the LED.
Definition: AddressableLED.h:48
LEDData(int _r, int _g, int _b)
Definition: AddressableLED.h:34
void SetLED(const Color &color)
Definition: AddressableLED.h:68
A class for driving addressable LEDs, such as WS2812Bs and NeoPixels.
Definition: AddressableLED.h:29
void Start()
Starts the output.
void SetBitTiming(units::nanosecond_t highTime0, units::nanosecond_t lowTime0, units::nanosecond_t highTime1, units::nanosecond_t lowTime1)
Sets the bit timing.
void SetData(std::initializer_list< LEDData > ledData)
Sets the led output data.
void SetData(std::span< const LEDData > ledData)
Sets the led output data.
AddressableLED(int port)
Constructs a new driver for a specific port.
void Stop()
Stops the output.
void SetLength(int length)
Sets the length of the LED strip.
void SetSyncTime(units::microsecond_t syncTime)
Sets the sync time.
Represents colors that can be used with Addressable LEDs.
Definition: Color8Bit.h:23
int red
Red component (0-255).
Definition: Color8Bit.h:119
int blue
Blue component (0-255).
Definition: Color8Bit.h:125
int green
Green component (0-255).
Definition: Color8Bit.h:122
Represents colors that can be used with Addressable LEDs.
Definition: Color.h:24
double green
Green component (0-1).
Definition: Color.h:871
double red
Red component (0-1).
Definition: Color.h:868
double blue
Blue component (0-1).
Definition: Color.h:874
Definition: AprilTagPoseEstimator.h:15
static constexpr const unit_t< compound_unit< energy::joule, time::seconds > > h(6.626070040e-34)
Planck constant.
structure for holding one LED's color data.
Definition: AddressableLEDTypes.h:13
uint8_t r
red value
Definition: AddressableLEDTypes.h:16
uint8_t padding
Definition: AddressableLEDTypes.h:17
uint8_t g
green value
Definition: AddressableLEDTypes.h:15
uint8_t b
blue value
Definition: AddressableLEDTypes.h:14
color
Definition: color.h:16