nRF Connect SDK API 2.8.99
|
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.
leds_on_mask | Bitmask that defines which LEDs to turn on. If this bitmask overlaps with leds_off_mask , leds_on_mask has priority. |
leds_off_mask | Bitmask that defines which LEDs to turn off. If this bitmask overlaps with leds_on_mask , leds_on_mask has priority. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |