22 traits.set_min_mireds(153);
23 traits.set_max_mireds(500);
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
Interface to write LightStates to hardware.
float get_setup_priority() const override
Base class for all output components that can output a variable level, like PWM.
void set_pinb_pin(output::FloatOutput *pinb_pin)
light::LightTraits get_traits() override
void set_pina_pin(output::FloatOutput *pina_pin)
void write_state(light::LightState *state) override
This class simplifies creating components that periodically check a state.
output::FloatOutput * pina_pin_
void set_level(float state)
Set the level of this float output, this is called from the front-end.
Brightness of cold and warm white output can be controlled.
output::FloatOutput * pinb_pin_
void current_values_as_cwww(float *cold_white, float *warm_white, bool constant_brightness=false)
This class is used to represent the capabilities of a light.
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
Implementation of SPI Controller mode.