20 uint8_t bit0_high_bits, uint8_t bit1_high_bits, uint16_t reset_bytes);
22 void setup()
override;
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.
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.
LN882xSPILEDStripLightOutput(uint8_t pin, uint16_t num_leds, light::ChannelColors channel_colors, uint8_t prescaler, uint8_t bit0_high_bits, uint8_t bit1_high_bits, uint16_t reset_bytes)
The SPI encoding comes from light.py: SPI clock APB0 / 2^prescaler, the number of high SPI bits for a...
const uint8_t bit0_high_bits_
const light::ChannelColors channel_colors_
light::LightTraits get_traits() override
float get_setup_priority() const override
const size_t dma_data_bytes_
uint32_t max_refresh_rate_
const uint8_t bit1_high_bits_
void clear_effect_data() override
const size_t color_data_bytes_
light::ESPColorView get_view_internal(int32_t index) const override
void write_state(light::LightState *state) override
void dump_config() override
int32_t size() const override
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()).
LightTraits traits() const
Colour modes of a strip with this channel order.