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

◆ led_blink()

int led_blink ( uint8_t  led_unit,
  ... 
)

Set the state of a given LED unit to blink.

Note
A led unit is defined as an RGB LED or a monochrome LED.
Parameters
led_unitSelected LED unit. Defines are located in board.h.
Note
If the given LED unit is an RGB LED, color must be provided as a single vararg. See led_color. For monochrome LEDs, the vararg will be ignored. Using a LED unit assigned to another core will do nothing and return 0.
Returns
0 on success. -EPERM if the module has not been initialized. -EINVAL if the color argument is illegal. Other errors from underlying drivers.