ESPHome
2024.11.1
|
#include <base_light_effects.h>
Public Member Functions | |
StrobeLightEffect (const std::string &name) | |
void | apply () override |
void | set_colors (const std::vector< StrobeLightEffectColor > &colors) |
Public Member Functions inherited from esphome::light::LightEffect | |
LightEffect (std::string name) | |
virtual void | start () |
Initialize this LightEffect. Will be called once after creation. More... | |
virtual void | start_internal () |
virtual void | stop () |
Called when this effect is about to be removed. More... | |
const std::string & | get_name () |
virtual void | init () |
Internal method called by the LightState when this light effect is registered in it. More... | |
void | init_internal (LightState *state) |
Protected Attributes | |
std::vector< StrobeLightEffectColor > | colors_ |
uint32_t | last_switch_ {0} |
size_t | at_color_ {0} |
Protected Attributes inherited from esphome::light::LightEffect | |
LightState * | state_ {nullptr} |
std::string | name_ |
Definition at line 156 of file base_light_effects.h.
|
inlineexplicit |
Definition at line 158 of file base_light_effects.h.
|
inlineoverridevirtual |
Implements esphome::light::LightEffect.
Definition at line 159 of file base_light_effects.h.
|
inline |
Definition at line 183 of file base_light_effects.h.
|
protected |
Definition at line 188 of file base_light_effects.h.
|
protected |
Definition at line 186 of file base_light_effects.h.
|
protected |
Definition at line 187 of file base_light_effects.h.