|
ESPHome 2026.11.0-dev
|
#include <addressable_light_effect.h>
Public Member Functions | |
| AddressableColorWipeEffect (const char *name) | |
| void | set_colors (const AddressableColorWipeEffectColor *colors, size_t count, Color *random_colors) |
| Codegen only: point at the generated flash table of colors, which must outlive the effect. | |
| void | set_add_led_interval (uint32_t add_led_interval) |
| void | set_reverse (bool reverse) |
| void | apply (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) | |
| virtual void | start () |
| Initialize this LightEffect. Will be called once after creation. | |
| StringRef | 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. | |
Protected Member Functions | |
| AddressableColorWipeEffectColor | entry_ (size_t index) const |
| Color | color_of_ (const AddressableColorWipeEffectColor &entry) const |
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 | |
| ConstVector< AddressableColorWipeEffectColor > | colors_ |
| Color * | random_colors_ {nullptr} |
| size_t | at_color_ {0} |
| uint32_t | last_add_ {0} |
| uint32_t | add_led_interval_ {} |
| size_t | leds_added_ {0} |
| bool | reverse_ {} |
Protected Attributes inherited from esphome::light::LightEffect | |
| LightState * | state_ {nullptr} |
| const char * | name_ |
Definition at line 119 of file addressable_light_effect.h.
|
inlineexplicit |
Definition at line 121 of file addressable_light_effect.h.
|
inlineoverridevirtual |
Implements esphome::light::AddressableLightEffect.
Definition at line 130 of file addressable_light_effect.h.
|
inlineprotected |
Definition at line 174 of file addressable_light_effect.h.
|
inlineprotected |
Definition at line 169 of file addressable_light_effect.h.
|
inline |
Definition at line 128 of file addressable_light_effect.h.
|
inline |
Codegen only: point at the generated flash table of colors, which must outlive the effect.
Random colors keep their current value in a RAM array, one slot per random entry.
Definition at line 124 of file addressable_light_effect.h.
|
inline |
Definition at line 129 of file addressable_light_effect.h.
|
protected |
Definition at line 184 of file addressable_light_effect.h.
|
protected |
Definition at line 182 of file addressable_light_effect.h.
|
protected |
Definition at line 180 of file addressable_light_effect.h.
|
protected |
Definition at line 183 of file addressable_light_effect.h.
|
protected |
Definition at line 185 of file addressable_light_effect.h.
|
protected |
Definition at line 181 of file addressable_light_effect.h.
|
protected |
Definition at line 186 of file addressable_light_effect.h.