#include <zephyr/types.h>
#include <zephyr/sys/util.h>
Go to the source code of this file.
|
#define | COLOR_BRIGHTNESS_TO_PCT(_val) ((_val * 100) / UINT8_MAX) |
|
#define | LED_COLOR_ARG_PASS(...) __VA_ARGS__ |
| Pass a color value as a macro argument.
|
|
#define | LED_COLOR(_r, _g, _b) |
|
#define | LED_NOCOLOR() |
|
#define | LED_EFFECT_LED_ON(_color) |
|
#define | LED_EFFECT_LED_OFF() LED_EFFECT_LED_ON(LED_NOCOLOR()) |
|
#define | LED_EFFECT_LED_ON_GO_OFF(_color, _on_time, _off_delay) |
|
#define | LED_EFFECT_LED_BLINK2(_period_on, _period_off, _color) |
|
#define | LED_EFFECT_LED_BLINK(_period, _color) LED_EFFECT_LED_BLINK2(_period, _period, LED_COLOR_ARG_PASS(_color)) |
|
#define | LED_EFFECT_LED_BREATH(_period, _color) |
|
#define | LED_CLOCK_BLINK_PERIOD 200 |
| Period of time between color changes while the LED is blinking (LED clock effect).
|
|
#define | LED_CLOCK_SLEEP_PERIOD 1000 |
| Period of time when the LED is turned off (LED clock effect).
|
|
#define | LED_EFFECT_LED_CLOCK(_ticks, _color) |
|