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

◆ dk_set_leds_state()

int dk_set_leds_state ( uint32_t  leds_on_mask,
uint32_t  leds_off_mask 
)

#include <include/dk_buttons_and_leds.h>

Set value of LED pins as specified in two bitmasks.

Parameters
leds_on_maskBitmask that defines which LEDs to turn on. If this bitmask overlaps with leds_off_mask, leds_on_mask has priority.
leds_off_maskBitmask that defines which LEDs to turn off. If this bitmask overlaps with leds_on_mask, leds_on_mask has priority.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.