hueplusplus 1.2.0
|
Class implementing the functions of ColorTemperatureStrategy. More...
#include <hueplusplus/ExtendedColorTemperatureStrategy.h>
Public Member Functions | |
bool | alertTemperature (unsigned int mired, Light &light) const override |
Function that lets the light perform one breath cycle in the specified color. | |
![]() | |
bool | setColorTemperature (unsigned int mired, uint8_t transition, Light &light) const override |
Function for changing a lights color temperature in mired with a specified transition. | |
bool | alertTemperature (unsigned int mired, Light &light) const override |
Function that lets the light perform one breath cycle in the specified color. | |
unsigned int | getColorTemperature (Light &light) const override |
Function that returns the current color temperature of the light. | |
unsigned int | getColorTemperature (const Light &light) const override |
Function that returns the current color temperature of the light. | |
![]() | |
virtual | ~ColorTemperatureStrategy ()=default |
Virtual dtor. | |
Class implementing the functions of ColorTemperatureStrategy.
|
overridevirtual |
Function that lets the light perform one breath cycle in the specified color.
It uses this_thread::sleep_for to accomodate for the time an Light::alert() needs The color temperature in mired ranges from 153 to 500 whereas 153 is cold and 500 is warm.
mired | The color temperature in mired |
light | A reference of the light |
Implements hueplusplus::ColorTemperatureStrategy.