ESPHome 2025.10.0-dev
|
#include <addressable_light_effect.h>
Public Member Functions | |
AddressableScanEffect (const std::string &name) | |
void | set_move_interval (uint32_t move_interval) |
void | set_scan_width (uint32_t scan_width) |
void | apply (AddressableLight &it, const Color ¤t_color) override |
![]() | |
AddressableLightEffect (const std::string &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. | |
![]() | |
LightEffect (std::string name) | |
virtual void | start () |
Initialize this LightEffect. Will be called once after creation. | |
const std::string & | get_name () |
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 Attributes | |
uint32_t | move_interval_ {} |
uint32_t | scan_width_ {1} |
uint32_t | last_move_ {0} |
uint32_t | at_led_ {0} |
bool | direction_ {true} |
![]() | |
LightState * | state_ {nullptr} |
std::string | name_ |
Additional Inherited Members | |
![]() | |
AddressableLight * | get_addressable_ () const |
![]() | |
uint32_t | get_index_in_parent_ () const |
Internal method to find this effect's index in the parent light's effect list. | |
Definition at line 166 of file addressable_light_effect.h.
|
inlineexplicit |
Definition at line 168 of file addressable_light_effect.h.
|
inlineoverridevirtual |
Implements esphome::light::AddressableLightEffect.
Definition at line 171 of file addressable_light_effect.h.
|
inline |
Definition at line 169 of file addressable_light_effect.h.
|
inline |
Definition at line 170 of file addressable_light_effect.h.
|
protected |
Definition at line 199 of file addressable_light_effect.h.
|
protected |
Definition at line 200 of file addressable_light_effect.h.
|
protected |
Definition at line 198 of file addressable_light_effect.h.
|
protected |
Definition at line 196 of file addressable_light_effect.h.
|
protected |
Definition at line 197 of file addressable_light_effect.h.