hueplusplus
1.0.0
|
Class implementing the functions of BrightnessStrategy. More...
#include <hueplusplus/SimpleBrightnessStrategy.h>
Public Member Functions | |
bool | setBrightness (unsigned int bri, uint8_t transition, Light &light) const override |
Function for changing a lights brightness with a specified transition. More... | |
unsigned int | getBrightness (Light &light) const override |
Function that returns the current brightness of the light. More... | |
unsigned int | getBrightness (const Light &light) const override |
Function that returns the current brightness of the light. More... | |
Public Member Functions inherited from hueplusplus::BrightnessStrategy | |
virtual | ~BrightnessStrategy ()=default |
Virtual dtor. More... | |
Class implementing the functions of BrightnessStrategy.
|
overridevirtual |
Function that returns the current brightness of the light.
Updates the lights state by calling refreshState()
light | A reference of the light |
Implements hueplusplus::BrightnessStrategy.
|
overridevirtual |
Function that returns the current brightness of the light.
light | A const reference of the light |
Implements hueplusplus::BrightnessStrategy.
|
overridevirtual |
Function for changing a lights brightness with a specified transition.
bri | The brightness raning from 0 = off to 255 = fully lit |
transition | The time it takes to fade to the new brightness in multiples of 100ms, 4 = 400ms and should be seen as the default |
light | A reference of the light |
Implements hueplusplus::BrightnessStrategy.