12 namespace beken_spi_led_strip {
25 void setup()
override;
48 void set_led_params(uint8_t bit0, uint8_t bit1, uint32_t spi_frequency);
53 for (
int i = 0; i < this->
size(); i++)
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
float get_setup_priority() const override
void set_is_rgbw(bool is_rgbw)
size_t get_buffer_size_() const
RGB color output and a separate white output.
void set_rgb_order(RGBOrder rgb_order)
void set_num_leds(uint16_t num_leds)
optional< uint32_t > max_refresh_rate_
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.
void set_pin(uint8_t pin)
void set_is_wrgb(bool is_wrgb)
void dump_config() override
void clear_effect_data() override
int32_t size() const override
White output only (use only if the light also has another color mode such as RGB).
This class is used to represent the capabilities of a light.
Implementation of SPI Controller mode.
light::LightTraits get_traits() override
Color can be controlled using RGB format (includes a brightness control for the color).
void set_led_params(uint8_t bit0, uint8_t bit1, uint32_t spi_frequency)
light::ESPColorView get_view_internal(int32_t index) const override
void write_state(light::LightState *state) override