ESPHome  2022.9.2
Public Member Functions | Protected Member Functions | Protected Attributes
esphome::wled::WLEDLightEffect Class Reference

#include <wled_light_effect.h>

Inheritance diagram for esphome::wled::WLEDLightEffect:
esphome::light::AddressableLightEffect esphome::light::LightEffect

Public Member Functions

 WLEDLightEffect (const std::string &name)
 
void start () override
 
void stop () override
 
void apply (light::AddressableLight &it, const Color &current_color) override
 
void set_port (uint16_t port)
 
- Public Member Functions inherited from esphome::light::AddressableLightEffect
 AddressableLightEffect (const std::string &name)
 
void start_internal () override
 
void apply () override
 
- Public Member Functions inherited from esphome::light::LightEffect
 LightEffect (std::string name)
 
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 Member Functions

void blank_all_leds_ (light::AddressableLight &it)
 
bool parse_frame_ (light::AddressableLight &it, const uint8_t *payload, uint16_t size)
 
bool parse_notifier_frame_ (light::AddressableLight &it, const uint8_t *payload, uint16_t size)
 
bool parse_warls_frame_ (light::AddressableLight &it, const uint8_t *payload, uint16_t size)
 
bool parse_drgb_frame_ (light::AddressableLight &it, const uint8_t *payload, uint16_t size)
 
bool parse_drgbw_frame_ (light::AddressableLight &it, const uint8_t *payload, uint16_t size)
 
bool parse_dnrgb_frame_ (light::AddressableLight &it, const uint8_t *payload, uint16_t size)
 
- Protected Member Functions inherited from esphome::light::AddressableLightEffect
AddressableLightget_addressable_ () const
 

Protected Attributes

uint16_t port_ {0}
 
std::unique_ptr< UDP > udp_
 
uint32_t blank_at_ {0}
 
uint32_t dropped_ {0}
 
- Protected Attributes inherited from esphome::light::LightEffect
LightStatestate_ {nullptr}
 
std::string name_
 

Detailed Description

Definition at line 16 of file wled_light_effect.h.

Constructor & Destructor Documentation

◆ WLEDLightEffect()

esphome::wled::WLEDLightEffect::WLEDLightEffect ( const std::string &  name)

Definition at line 27 of file wled_light_effect.cpp.

Member Function Documentation

◆ apply()

void esphome::wled::WLEDLightEffect::apply ( light::AddressableLight it,
const Color current_color 
)
overridevirtual

Implements esphome::light::AddressableLightEffect.

Definition at line 51 of file wled_light_effect.cpp.

◆ blank_all_leds_()

void esphome::wled::WLEDLightEffect::blank_all_leds_ ( light::AddressableLight it)
protected

Definition at line 44 of file wled_light_effect.cpp.

◆ parse_dnrgb_frame_()

bool esphome::wled::WLEDLightEffect::parse_dnrgb_frame_ ( light::AddressableLight it,
const uint8_t *  payload,
uint16_t  size 
)
protected

Definition at line 218 of file wled_light_effect.cpp.

◆ parse_drgb_frame_()

bool esphome::wled::WLEDLightEffect::parse_drgb_frame_ ( light::AddressableLight it,
const uint8_t *  payload,
uint16_t  size 
)
protected

Definition at line 173 of file wled_light_effect.cpp.

◆ parse_drgbw_frame_()

bool esphome::wled::WLEDLightEffect::parse_drgbw_frame_ ( light::AddressableLight it,
const uint8_t *  payload,
uint16_t  size 
)
protected

Definition at line 195 of file wled_light_effect.cpp.

◆ parse_frame_()

bool esphome::wled::WLEDLightEffect::parse_frame_ ( light::AddressableLight it,
const uint8_t *  payload,
uint16_t  size 
)
protected

Definition at line 83 of file wled_light_effect.cpp.

◆ parse_notifier_frame_()

bool esphome::wled::WLEDLightEffect::parse_notifier_frame_ ( light::AddressableLight it,
const uint8_t *  payload,
uint16_t  size 
)
protected

Definition at line 145 of file wled_light_effect.cpp.

◆ parse_warls_frame_()

bool esphome::wled::WLEDLightEffect::parse_warls_frame_ ( light::AddressableLight it,
const uint8_t *  payload,
uint16_t  size 
)
protected

Definition at line 150 of file wled_light_effect.cpp.

◆ set_port()

void esphome::wled::WLEDLightEffect::set_port ( uint16_t  port)
inline

Definition at line 23 of file wled_light_effect.h.

◆ start()

void esphome::wled::WLEDLightEffect::start ( )
overridevirtual

Reimplemented from esphome::light::LightEffect.

Definition at line 29 of file wled_light_effect.cpp.

◆ stop()

void esphome::wled::WLEDLightEffect::stop ( )
overridevirtual

Reimplemented from esphome::light::AddressableLightEffect.

Definition at line 35 of file wled_light_effect.cpp.

Field Documentation

◆ blank_at_

uint32_t esphome::wled::WLEDLightEffect::blank_at_ {0}
protected

Definition at line 36 of file wled_light_effect.h.

◆ dropped_

uint32_t esphome::wled::WLEDLightEffect::dropped_ {0}
protected

Definition at line 37 of file wled_light_effect.h.

◆ port_

uint16_t esphome::wled::WLEDLightEffect::port_ {0}
protected

Definition at line 34 of file wled_light_effect.h.

◆ udp_

std::unique_ptr<UDP> esphome::wled::WLEDLightEffect::udp_
protected

Definition at line 35 of file wled_light_effect.h.


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