|
hueplusplus 1.2.0
|
Class implementing the functions of BrightnessStrategy. More...
#include <hueplusplus/SimpleBrightnessStrategy.h>
Inheritance diagram for hueplusplus::SimpleBrightnessStrategy:
Collaboration diagram for hueplusplus::SimpleBrightnessStrategy: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. | |
| unsigned int | getBrightness (Light &light) const override |
| Function that returns the current brightness of the light. | |
| unsigned int | getBrightness (const Light &light) const override |
| Function that returns the current brightness of the light. | |
Public Member Functions inherited from hueplusplus::BrightnessStrategy | |
| virtual | ~BrightnessStrategy ()=default |
| Virtual dtor. | |
Class implementing the functions of BrightnessStrategy.
|
overridevirtual |
Function that returns the current brightness of the light.
| light | A const reference of the light |
Implements hueplusplus::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 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.