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

◆ LED_EFFECT_LED_ON_GO_OFF

#define LED_EFFECT_LED_ON_GO_OFF (   _color,
  _on_time,
  _off_delay 
)

#include <include/caf/led_effect.h>

Value:
{ \
.steps = ((const struct led_effect_step[]) { \
{ \
.color = _color, \
.substep_count = 1, \
.substep_time = 0, \
}, \
{ \
.color = _color, \
.substep_count = 1, \
.substep_time = (_on_time), \
}, \
{ \
.color = LED_NOCOLOR(), \
.substep_count = (_off_delay)/10, \
.substep_time = 10, \
}, \
}), \
.step_count = 3, \
.loop_forever = false, \
}
#define LED_NOCOLOR()
Definition: led_effect.h:106
uint16_t substep_time
Definition: led_effect.h:46
Single step of a LED effect.
Definition: led_effect.h:38

Create LED turned on for a brief period effect initializer.

LED color remains constant for a defined time, then goes off.

Parameters
_colorSelected LED color.
_on_timeTime LED will remain on in milliseconds.
_off_delayTime in which LED will gradually switch to off (in milliseconds).