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

◆ led_off()

int led_off ( uint8_t  led_unit)

Set the state of a given LED unit to off.

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