7#include <initializer_list>
67 this->
r = color.
red * 255;
68 this->
g = color.
green * 255;
69 this->
b = color.
blue * 255;
113 void SetData(std::span<const LEDData> ledData);
123 void SetData(std::initializer_list<LEDData> ledData);
136 void SetBitTiming(units::nanosecond_t highTime0, units::nanosecond_t lowTime0,
137 units::nanosecond_t highTime1,
138 units::nanosecond_t lowTime1);
Definition: AddressableLED.h:29
LEDData()
Definition: AddressableLED.h:31
void SetLED(const Color8Bit &color)
Definition: AddressableLED.h:77
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:46
LEDData(int _r, int _g, int _b)
Definition: AddressableLED.h:32
void SetLED(const Color &color)
Definition: AddressableLED.h:66
A class for driving addressable LEDs, such as WS2812Bs and NeoPixels.
Definition: AddressableLED.h:27
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
Definition: Color8Bit.h:118
int blue
Definition: Color8Bit.h:120
int green
Definition: Color8Bit.h:119
Represents colors that can be used with Addressable LEDs.
Definition: Color.h:23
double green
Definition: Color.h:867
double red
Definition: Color.h:866
double blue
Definition: Color.h:868
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