ESPHome  2022.9.2
Public Member Functions | Protected Attributes
esphome::light::StrobeLightEffect Class Reference

#include <base_light_effects.h>

Inheritance diagram for esphome::light::StrobeLightEffect:
esphome::light::LightEffect

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< StrobeLightEffectColorcolors_
 
uint32_t last_switch_ {0}
 
size_t at_color_ {0}
 
- Protected Attributes inherited from esphome::light::LightEffect
LightStatestate_ {nullptr}
 
std::string name_
 

Detailed Description

Definition at line 145 of file base_light_effects.h.

Constructor & Destructor Documentation

◆ StrobeLightEffect()

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

Definition at line 147 of file base_light_effects.h.

Member Function Documentation

◆ apply()

void esphome::light::StrobeLightEffect::apply ( )
inlineoverridevirtual

Implements esphome::light::LightEffect.

Definition at line 148 of file base_light_effects.h.

◆ set_colors()

void esphome::light::StrobeLightEffect::set_colors ( const std::vector< StrobeLightEffectColor > &  colors)
inline

Definition at line 172 of file base_light_effects.h.

Field Documentation

◆ at_color_

size_t esphome::light::StrobeLightEffect::at_color_ {0}
protected

Definition at line 177 of file base_light_effects.h.

◆ colors_

std::vector<StrobeLightEffectColor> esphome::light::StrobeLightEffect::colors_
protected

Definition at line 175 of file base_light_effects.h.

◆ last_switch_

uint32_t esphome::light::StrobeLightEffect::last_switch_ {0}
protected

Definition at line 176 of file base_light_effects.h.


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