8#include "driver/spi_master.h"
14static constexpr int NUM_ZONES = BRIZLABS_LED_STRING_ZONE_COUNT;
21 void setup()
override;
24 int32_t
size()
const override {
return NUM_ZONES; }
30 bool queue_frame_(uint8_t zone, uint8_t r, uint8_t g, uint8_t b);
34 spi_device_handle_t
dev_{
nullptr};
36 spi_transaction_t
trans_[NUM_ZONES]{};
37 uint8_t
frames_[NUM_ZONES][FRAME_BYTES]{};
39 uint8_t
buf_[NUM_ZONES * 3]{};
float get_setup_priority() const override
void dump_config() override
BrizLabsLEDString(int pin)
void clear_effect_data() override
uint8_t frames_[NUM_ZONES][FRAME_BYTES]
bool queue_frame_(uint8_t zone, uint8_t r, uint8_t g, uint8_t b)
light::CorrectedBufferColorAccessor internal_accessor_
uint8_t effect_data_[NUM_ZONES]
int32_t size() const override
spi_transaction_t trans_[NUM_ZONES]
void write_state(light::LightState *state) override
light::LightTraits get_traits() override
uint8_t buf_[NUM_ZONES *3]
ESPColorCorrection correction_
void clear_effect_data(size_t num_leds)
Zero the effect data of the first num_leds LEDs; does nothing before the effect data is allocated.
ChannelColors channel_colors
Color accessor backed by a buffer whose contents have color correction applied.
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
This class is used to represent the capabilities of a light.
constexpr float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
LightTraits traits() const
Colour modes of a strip with this channel order.