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