The parameters that can be set for a given light. More...
Data Fields | |
int | brightnessMode |
Policy used by the framework to manage the light's brightness. More... | |
unsigned int | color |
The color of the LED in ARGB. More... | |
int | flashMode |
See the LIGHT_FLASH_* constants. More... | |
int | flashOffMS |
int | flashOnMS |
The parameters that can be set for a given light.
Not all lights must support all parameters. If you can do something backward-compatible, you should.
int light_state_t::brightnessMode |
unsigned int light_state_t::color |
The color of the LED in ARGB.
Do your best here.
The high byte should be ignored. Callers will set it to 0xff (which would correspond to 255 alpha).
int light_state_t::flashMode |