11 #include <driver/gpio.h> 13 #include <esp_idf_version.h> 15 #if ESP_IDF_VERSION_MAJOR >= 5 16 #include <driver/rmt_tx.h> 18 #include <driver/rmt.h> 22 namespace esp32_rmt_led_strip {
35 void setup()
override;
59 void set_led_params(uint32_t bit0_high, uint32_t bit0_low, uint32_t bit1_high, uint32_t bit1_low,
60 uint32_t reset_time_high, uint32_t reset_time_low);
63 #if ESP_IDF_VERSION_MAJOR >= 5 70 for (
int i = 0; i < this->
size(); i++)
83 #if ESP_IDF_VERSION_MAJOR >= 5 void set_is_wrgb(bool is_wrgb)
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
rmt_encoder_handle_t encoder_
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
void set_use_psram(bool use_psram)
rmt_channel_handle_t channel_
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_rmt_symbols(uint32_t rmt_symbols)
void set_num_leds(uint16_t num_leds)
rmt_symbol_word_t * rmt_buf_
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_