ChaosDMX
Open-Source DMX-Interface
Loading...
Searching...
No Matches
led.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include "driver/ledc.h"
9#include "esp_err.h"
10#include "freertos/FreeRTOS.h"
11#include "freertos/semphr.h"
12#include "freertos/task.h"
13#include "logger.h"
14#include <math.h>
15#include <stdint.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
32
40esp_err_t led_init(void);
41
49void led_set_mode(led_mode_t mode);
50
56void led_set_brightness(uint8_t brightness);
57
58#ifdef __cplusplus
59}
60#endif
void led_set_brightness(uint8_t brightness)
Dynamically updates the LED maximum brightness.
Definition led.c:188
led_mode_t
Available operational modes for the status LED.
Definition led.h:24
@ LED_MODE_NORMAL
Definition led.h:28
@ LED_MODE_WARN
Definition led.h:29
@ LED_MODE_OFF
Definition led.h:25
@ LED_MODE_ERROR
Definition led.h:30
@ LED_MODE_BOOT_BREATHING
Definition led.h:26
@ LED_MODE_RESET
Definition led.h:27
void led_set_mode(led_mode_t mode)
Sets the current operational mode of the LED.
Definition led.c:141
esp_err_t led_init(void)
Initializes the LEDC peripheral for the status LED.
Definition led.c:117
Project-wide logging macros based on ESP-IDF's logging library.