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

◆ dk_set_led()

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.

Parameters
led_idxIndex of the LED.
valValue for the LED: 1 - turn on, 0 - turn off
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.
See also
dk_set_led_on, dk_set_led_off