nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
led.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
15#ifndef _LED_H_
16#define _LED_H_
17
18#include <stdint.h>
19
20#define RED 0
21
22#define GREEN 1
23
24#define BLUE 2
25
26#define GRN GREEN
27
28#define BLU BLUE
29
47
48#define LED_ON LED_COLOR_WHITE
49
50#define LED_BLINK true
51
52#define LED_SOLID false
53
69int led_blink(uint8_t led_unit, ...);
70
86int led_on(uint8_t led_unit, ...);
87
100int led_off(uint8_t led_unit);
101
112int led_init(void);
113
118#endif /* _LED_H_ */
int led_blink(uint8_t led_unit,...)
Set the state of a given LED unit to blink.
int led_init(void)
Initialise the LED module.
int led_on(uint8_t led_unit,...)
Turn the given LED unit on.
@ LED_COLOR_MAGENTA
Definition led.h:42
@ LED_COLOR_CYAN
Definition led.h:43
@ LED_COLOR_RED
Definition led.h:38
@ LED_COLOR_BLUE
Definition led.h:41
@ LED_COLOR_GREEN
Definition led.h:39
@ LED_COLOR_NUM
Definition led.h:45
@ LED_COLOR_YELLOW
Definition led.h:40
@ LED_COLOR_WHITE
Definition led.h:44
@ LED_COLOR_OFF
Definition led.h:37
int led_off(uint8_t led_unit)
Set the state of a given LED unit to off.
Color of LED.
Definition led_effect.h:27