20 uint8_t bit0_high_bits, uint8_t bit1_high_bits, uint16_t reset_bytes);
22 void setup()
override;
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.
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_
light::LightTraits get_traits() override
float get_setup_priority() const override
const size_t dma_data_bytes_
light::CorrectedBufferColorAccessor internal_accessor_
uint32_t max_refresh_rate_
const uint8_t bit1_high_bits_
void clear_effect_data() override
const size_t color_data_bytes_
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.
LightTraits traits() const
Colour modes of a strip with this channel order.