ESPHome  2024.10.2
Public Member Functions | Protected Attributes
esphome::light::AddressableRandomTwinkleEffect Class Reference

#include <addressable_light_effect.h>

Inheritance diagram for esphome::light::AddressableRandomTwinkleEffect:
esphome::light::AddressableLightEffect esphome::light::LightEffect

Public Member Functions

 AddressableRandomTwinkleEffect (const std::string &name)
 
void apply (AddressableLight &it, const Color &current_color) override
 
void set_twinkle_probability (float twinkle_probability)
 
void set_progress_interval (uint32_t progress_interval)
 
- Public Member Functions inherited from esphome::light::AddressableLightEffect
 AddressableLightEffect (const std::string &name)
 
void start_internal () override
 
void stop () override
 
void apply () override
 
- 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...
 
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

float twinkle_probability_ {}
 
uint32_t progress_interval_ {}
 
uint32_t last_progress_ {0}
 
- Protected Attributes inherited from esphome::light::LightEffect
LightStatestate_ {nullptr}
 
std::string name_
 

Additional Inherited Members

- Protected Member Functions inherited from esphome::light::AddressableLightEffect
AddressableLightget_addressable_ () const
 

Detailed Description

Definition at line 238 of file addressable_light_effect.h.

Constructor & Destructor Documentation

◆ AddressableRandomTwinkleEffect()

esphome::light::AddressableRandomTwinkleEffect::AddressableRandomTwinkleEffect ( const std::string &  name)
inlineexplicit

Definition at line 240 of file addressable_light_effect.h.

Member Function Documentation

◆ apply()

void esphome::light::AddressableRandomTwinkleEffect::apply ( AddressableLight it,
const Color current_color 
)
inlineoverridevirtual

◆ set_progress_interval()

void esphome::light::AddressableRandomTwinkleEffect::set_progress_interval ( uint32_t  progress_interval)
inline

Definition at line 279 of file addressable_light_effect.h.

◆ set_twinkle_probability()

void esphome::light::AddressableRandomTwinkleEffect::set_twinkle_probability ( float  twinkle_probability)
inline

Definition at line 278 of file addressable_light_effect.h.

Field Documentation

◆ last_progress_

uint32_t esphome::light::AddressableRandomTwinkleEffect::last_progress_ {0}
protected

Definition at line 284 of file addressable_light_effect.h.

◆ progress_interval_

uint32_t esphome::light::AddressableRandomTwinkleEffect::progress_interval_ {}
protected

Definition at line 283 of file addressable_light_effect.h.

◆ twinkle_probability_

float esphome::light::AddressableRandomTwinkleEffect::twinkle_probability_ {}
protected

Definition at line 282 of file addressable_light_effect.h.


The documentation for this class was generated from the following file: