Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
led.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
16#ifndef __LED_H__
17#define __LED_H__
18
19#include "../common.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif /* __cplusplus */
24
25
31int led_init(void);
32
40int led_set_led0(float brightness);
41
49int led_set_led1(float brightness);
50
58int led_set_led2(float brightness);
59
69int led_set_leds(float led0_brightness, float led1_brightness, float led2_brightness);
70
76int led_off(void);
77
89int led_blink_led0(float brightness, int32_t on_ms, int32_t off_ms);
90
102int led_blink_led1(float brightness, int32_t on_ms, int32_t off_ms);
103
115int led_blink_led2(float brightness, int32_t on_ms, int32_t off_ms);
116
130int led_blink_leds(float led0_brightness, float led1_brightness, float led2_brightness, int32_t on_ms, int32_t off_ms);
131
132#ifdef __cplusplus
133}
134#endif /* __cplusplus */
135
136
137#endif /* __LED_H__ */
138
int led_blink_leds(float led0_brightness, float led1_brightness, float led2_brightness, int32_t on_ms, int32_t off_ms)
Blink LED channels 0..2 with specific brightness.
int led_set_led2(float brightness)
Turn on LED channel 2 (blue on RGB boards, LED2 on discrete boards)
int led_off(void)
Turn off all LEDs.
int led_blink_led0(float brightness, int32_t on_ms, int32_t off_ms)
Blink LED channel 0 (red on RGB boards, LED0 on discrete boards)
int led_set_led1(float brightness)
Turn on LED channel 1 (green on RGB boards, LED1 on discrete boards)
int led_blink_led2(float brightness, int32_t on_ms, int32_t off_ms)
Blink LED channel 2 (blue on RGB boards, LED2 on discrete boards)
int led_init(void)
Initialize LEDs.
int led_set_leds(float led0_brightness, float led1_brightness, float led2_brightness)
Turn on LED channels 0..2 with specific brightness.
int led_blink_led1(float brightness, int32_t on_ms, int32_t off_ms)
Blink LED channel 1 (green on RGB boards, LED1 on discrete boards)
int led_set_led0(float brightness)
Turn on LED channel 0 (red on RGB boards, LED0 on discrete boards)