nRF Connect SDK API 0.1.0
|
int dk_set_led | ( | uint8_t | led_idx, |
uint32_t | val | ||
) |
#include <include/dk_buttons_and_leds.h>
Set a single LED value.
This function turns a single LED on or off.
led_idx | Index of the LED. |
val | Value for the LED: 1 - turn on, 0 - turn off |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |