ESPHome  2024.6.6
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 235 of file addressable_light_effect.h.

Constructor & Destructor Documentation

◆ AddressableRandomTwinkleEffect()

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

Definition at line 237 of file addressable_light_effect.h.

Member Function Documentation

◆ apply()

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

◆ set_progress_interval()

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

Definition at line 275 of file addressable_light_effect.h.

◆ set_twinkle_probability()

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

Definition at line 274 of file addressable_light_effect.h.

Field Documentation

◆ last_progress_

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

Definition at line 280 of file addressable_light_effect.h.

◆ progress_interval_

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

Definition at line 279 of file addressable_light_effect.h.

◆ twinkle_probability_

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

Definition at line 278 of file addressable_light_effect.h.

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