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