nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
LED Effect

LED Effect. More...

Data Structures

struct  led_color
 Color of LED. More...
 
struct  led_effect_step
 Single step of a LED effect. More...
 
struct  led_effect
 Single LED effect. More...
 

Macros

#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)
 

Detailed Description

LED Effect.