27 float red, green, blue, white;
void set_green(output::FloatOutput *green)
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
Interface to write LightStates to hardware.
void write_state(light::LightState *state) override
output::FloatOutput * red_
Base class for all output components that can output a variable level, like PWM.
RGB color output and a separate white output.
output::FloatOutput * white_
void set_red(output::FloatOutput *red)
void set_level(float state)
Set the level of this float output, this is called from the front-end.
output::FloatOutput * green_
White output only (use only if the light also has another color mode such as RGB).
This class is used to represent the capabilities of a light.
void set_color_interlock(bool color_interlock)
Implementation of SPI Controller mode.
light::LightTraits get_traits() override
Color can be controlled using RGB format (includes a brightness control for the color).
void set_blue(output::FloatOutput *blue)
output::FloatOutput * blue_
void set_white(output::FloatOutput *white)
void current_values_as_rgbw(float *red, float *green, float *blue, float *white, bool color_interlock=false)