ESPHome  2024.10.2
Public Member Functions | Protected Attributes
esphome::rgb::RGBLightOutput Class Reference

#include <rgb_light_output.h>

Inheritance diagram for esphome::rgb::RGBLightOutput:
esphome::light::LightOutput

Public Member Functions

void set_red (output::FloatOutput *red)
 
void set_green (output::FloatOutput *green)
 
void set_blue (output::FloatOutput *blue)
 
light::LightTraits get_traits () override
 
void write_state (light::LightState *state) override
 
- Public Member Functions inherited from esphome::light::LightOutput
virtual std::unique_ptr< LightTransformercreate_default_transition ()
 Return the default transformer used for transitions. More...
 
virtual void setup_state (LightState *state)
 
virtual void update_state (LightState *state)
 Called on every update of the current values of the associated LightState, can optionally be used to do processing of this change. More...
 

Protected Attributes

output::FloatOutputred_
 
output::FloatOutputgreen_
 
output::FloatOutputblue_
 

Detailed Description

Definition at line 10 of file rgb_light_output.h.

Member Function Documentation

◆ get_traits()

light::LightTraits esphome::rgb::RGBLightOutput::get_traits ( )
inlineoverridevirtual

Implements esphome::light::LightOutput.

Definition at line 16 of file rgb_light_output.h.

◆ set_blue()

void esphome::rgb::RGBLightOutput::set_blue ( output::FloatOutput blue)
inline

Definition at line 14 of file rgb_light_output.h.

◆ set_green()

void esphome::rgb::RGBLightOutput::set_green ( output::FloatOutput green)
inline

Definition at line 13 of file rgb_light_output.h.

◆ set_red()

void esphome::rgb::RGBLightOutput::set_red ( output::FloatOutput red)
inline

Definition at line 12 of file rgb_light_output.h.

◆ write_state()

void esphome::rgb::RGBLightOutput::write_state ( light::LightState state)
inlineoverridevirtual

Implements esphome::light::LightOutput.

Definition at line 21 of file rgb_light_output.h.

Field Documentation

◆ blue_

output::FloatOutput* esphome::rgb::RGBLightOutput::blue_
protected

Definition at line 32 of file rgb_light_output.h.

◆ green_

output::FloatOutput* esphome::rgb::RGBLightOutput::green_
protected

Definition at line 31 of file rgb_light_output.h.

◆ red_

output::FloatOutput* esphome::rgb::RGBLightOutput::red_
protected

Definition at line 30 of file rgb_light_output.h.


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