nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ LED_EFFECT_LED_BLINK2

#define LED_EFFECT_LED_BLINK2 ( _period_on,
_period_off,
_color )

#include <include/caf/led_effect.h>

Value:
{ \
.steps = ((const struct led_effect_step[]) { \
{ \
.color = _color, \
.substep_count = 1, \
.substep_time = (_period_off), \
}, \
{ \
.color = LED_NOCOLOR(), \
.substep_count = 1, \
.substep_time = (_period_on), \
}, \
}), \
.step_count = 2, \
.loop_forever = true, \
}
#define LED_NOCOLOR()
Definition led_effect.h:106
Single step of a LED effect.
Definition led_effect.h:38

Create LED blinking effect initializer with two periods as arguments.

LED color is periodically changed between the selected color and the LED turned off. This macro takes two periods: for on and off time.

Parameters
_period_onPeriod of time for which LED is on.
_period_offPeriod of time for which LED is off.
_colorSelected LED color.
See also
LED_EFFECT_LED_BLINK