16 void setup()
override;
light::LightTraits get_traits() override
void clear_effect_data() override
light::ChannelColors channel_colors_
int32_t size() const override
float get_setup_priority() const override
size_t get_buffer_size_() const
void set_led_params(uint8_t bit0, uint8_t bit1, uint32_t spi_frequency)
void set_num_leds(uint16_t num_leds)
void set_pin(uint8_t pin)
uint32_t max_refresh_rate_
void dump_config() override
light::ESPColorView get_view_internal(int32_t index) const override
void set_channel_colors(light::ChannelColors channel_colors)
void write_state(light::LightState *state) override
void set_max_refresh_rate(uint32_t interval_us)
Set a maximum refresh rate in µs as some lights do not like being updated too often.
ESPColorCorrection correction_
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.
Which byte of an addressable LED's data carries each colour.
ESPColorView view(uint8_t *buf, uint8_t *effect_data, int32_t index, const ESPColorCorrection *correction) const
View of LED index in buf; a scratch pixel while buf or effect_data is unallocated (failed setup()).
static constexpr uint8_t NO_WHITE
Value of w for a strip that only has red, green and blue channels.
uint8_t bytes_per_led() const
LightTraits traits() const
Colour modes of a strip with this channel order.