|
ESPHome 2025.12.0-dev
|
#include <adalight_light_effect.h>
Public Member Functions | |
| AdalightLightEffect (const char *name) | |
| void | start () override |
| void | stop () override |
| void | apply (light::AddressableLight &it, const Color ¤t_color) override |
Public Member Functions inherited from esphome::light::AddressableLightEffect | |
| AddressableLightEffect (const char *name) | |
| void | start_internal () override |
| void | stop () override |
| void | apply () override |
| uint32_t | get_effect_index () const |
| Get effect index specifically for addressable effects. | |
| bool | is_current_effect () const |
| Check if this is the currently running addressable effect. | |
Public Member Functions inherited from esphome::light::LightEffect | |
| LightEffect (const char *name) | |
| const char * | get_name () const |
| Returns the name of this effect. | |
| virtual void | init () |
| Internal method called by the LightState when this light effect is registered in it. | |
| void | init_internal (LightState *state) |
| uint32_t | get_index () const |
| Get the index of this effect in the parent light's effect list. | |
| bool | is_active () const |
| Check if this effect is currently active. | |
| LightState * | get_light_state () const |
| Get a reference to the parent light state. | |
Public Member Functions inherited from esphome::uart::UARTDevice | |
| UARTDevice ()=default | |
| UARTDevice (UARTComponent *parent) | |
| void | set_uart_parent (UARTComponent *parent) |
| void | write_byte (uint8_t data) |
| void | set_rx_full_threshold (size_t rx_full_threshold) |
| void | set_rx_full_threshold_ms (size_t time) |
| size_t | get_rx_full_threshold () |
| void | set_rx_timeout (size_t rx_timeout) |
| size_t | get_rx_timeout () |
| void | write_array (const uint8_t *data, size_t len) |
| void | write_array (const std::vector< uint8_t > &data) |
| template<size_t N> | |
| void | write_array (const std::array< uint8_t, N > &data) |
| void | write_str (const char *str) |
| bool | read_byte (uint8_t *data) |
| bool | peek_byte (uint8_t *data) |
| bool | read_array (uint8_t *data, size_t len) |
| template<size_t N> | |
| optional< std::array< uint8_t, N > > | read_array () |
| int | available () |
| void | flush () |
| int | read () |
| size_t | write (uint8_t data) |
| int | peek () |
| void | check_uart_settings (uint32_t baud_rate, uint8_t stop_bits=1, UARTParityOptions parity=UART_CONFIG_PARITY_NONE, uint8_t data_bits=8) |
| Check that the configuration of the UART bus matches the provided values and otherwise print a warning. | |
Protected Types | |
| enum | Frame { INVALID , PARTIAL , CONSUMED } |
Protected Member Functions | |
| unsigned int | get_frame_size_ (int led_count) const |
| void | reset_frame_ (light::AddressableLight &it) |
| void | blank_all_leds_ (light::AddressableLight &it) |
| Frame | parse_frame_ (light::AddressableLight &it) |
Protected Member Functions inherited from esphome::light::AddressableLightEffect | |
| AddressableLight * | get_addressable_ () const |
Protected Member Functions inherited from esphome::light::LightEffect | |
| uint32_t | get_index_in_parent_ () const |
| Internal method to find this effect's index in the parent light's effect list. | |
Protected Attributes | |
| uint32_t | last_ack_ {0} |
| uint32_t | last_byte_ {0} |
| uint32_t | last_reset_ {0} |
| std::vector< uint8_t > | frame_ |
Protected Attributes inherited from esphome::light::LightEffect | |
| LightState * | state_ {nullptr} |
| const char * | name_ |
Protected Attributes inherited from esphome::uart::UARTDevice | |
| UARTComponent * | parent_ {nullptr} |
Definition at line 12 of file adalight_light_effect.h.
|
protected |
| Enumerator | |
|---|---|
| INVALID | |
| PARTIAL | |
| CONSUMED | |
Definition at line 21 of file adalight_light_effect.h.
| esphome::adalight::AdalightLightEffect::AdalightLightEffect | ( | const char * | name | ) |
Definition at line 12 of file adalight_light_effect.cpp.
|
overridevirtual |
Implements esphome::light::AddressableLightEffect.
Definition at line 50 of file adalight_light_effect.cpp.
|
protected |
Definition at line 43 of file adalight_light_effect.cpp.
|
protected |
Definition at line 28 of file adalight_light_effect.cpp.
|
protected |
Definition at line 100 of file adalight_light_effect.cpp.
|
protected |
Definition at line 36 of file adalight_light_effect.cpp.
|
overridevirtual |
Reimplemented from esphome::light::LightEffect.
Definition at line 14 of file adalight_light_effect.cpp.
|
overridevirtual |
Reimplemented from esphome::light::LightEffect.
Definition at line 22 of file adalight_light_effect.cpp.
|
protected |
Definition at line 35 of file adalight_light_effect.h.
|
protected |
Definition at line 32 of file adalight_light_effect.h.
|
protected |
Definition at line 33 of file adalight_light_effect.h.
|
protected |
Definition at line 34 of file adalight_light_effect.h.