#include <base_light_effects.h>
Definition at line 113 of file base_light_effects.h.
◆ LambdaLightEffect()
esphome::light::LambdaLightEffect::LambdaLightEffect |
( |
const std::string & | name, |
|
|
std::function< void(bool initial_run)> | f, |
|
|
uint32_t | update_interval ) |
|
inline |
◆ apply()
void esphome::light::LambdaLightEffect::apply |
( |
| ) |
|
|
inlineoverridevirtual |
◆ get_current_index()
uint32_t esphome::light::LambdaLightEffect::get_current_index |
( |
| ) |
const |
|
inline |
Get the current effect index for use in lambda functions.
This can be useful for lambda effects that need to know their own index.
Definition at line 130 of file base_light_effects.h.
◆ start()
void esphome::light::LambdaLightEffect::start |
( |
| ) |
|
|
inlineoverridevirtual |
◆ f_
std::function<void(bool initial_run)> esphome::light::LambdaLightEffect::f_ |
|
protected |
◆ initial_run_
bool esphome::light::LambdaLightEffect::initial_run_ |
|
protected |
◆ last_run_
uint32_t esphome::light::LambdaLightEffect::last_run_ {0} |
|
protected |
◆ update_interval_
uint32_t esphome::light::LambdaLightEffect::update_interval_ |
|
protected |
The documentation for this class was generated from the following file: