ESPHome
2024.10.2
|
#include <addressable_light.h>
Public Member Functions | |
AddressableLightTransformer (AddressableLight &light) | |
void | start () override |
optional< LightColorValues > | apply () override |
Public Member Functions inherited from esphome::light::LightTransitionTransformer | |
void | start () override |
optional< LightColorValues > | apply () override |
Public Member Functions inherited from esphome::light::LightTransformer | |
virtual | ~LightTransformer ()=default |
void | setup (const LightColorValues &start_values, const LightColorValues &target_values, uint32_t length) |
virtual bool | is_finished () |
Indicates whether this transformation is finished. More... | |
virtual void | stop () |
This will be called after transition is finished. More... | |
const LightColorValues & | get_start_values () const |
const LightColorValues & | get_target_values () const |
Protected Attributes | |
AddressableLight & | light_ |
Color | target_color_ {} |
float | last_transition_progress_ {0.0f} |
float | accumulated_alpha_ {0.0f} |
Protected Attributes inherited from esphome::light::LightTransitionTransformer | |
bool | changing_color_mode_ {false} |
LightColorValues | end_values_ {} |
LightColorValues | intermediate_values_ {} |
Protected Attributes inherited from esphome::light::LightTransformer | |
uint32_t | start_time_ |
uint32_t | length_ |
LightColorValues | start_values_ |
LightColorValues | target_values_ |
Additional Inherited Members | |
Protected Member Functions inherited from esphome::light::LightTransformer | |
float | get_progress_ () |
The progress of this transition, on a scale of 0 to 1. More... | |
Static Protected Member Functions inherited from esphome::light::LightTransitionTransformer | |
static float | smoothed_progress (float x) |
Definition at line 108 of file addressable_light.h.
|
inline |
Definition at line 110 of file addressable_light.h.
|
overridevirtual |
Implements esphome::light::LightTransformer.
Definition at line 64 of file addressable_light.cpp.
|
overridevirtual |
Reimplemented from esphome::light::LightTransformer.
Definition at line 51 of file addressable_light.cpp.
|
protected |
Definition at line 119 of file addressable_light.h.
|
protected |
Definition at line 118 of file addressable_light.h.
|
protected |
Definition at line 116 of file addressable_light.h.
|
protected |
Definition at line 117 of file addressable_light.h.