Settings: disable onboard LED
All checks were successful
ESP32 Build & Release / build (push) Successful in 1m16s

This commit is contained in:
2026-09-14 00:02:59 +02:00
parent e6760e4866
commit a30ea5429f
6 changed files with 120 additions and 11 deletions

27
main/board_led.h Normal file
View File

@@ -0,0 +1,27 @@
#pragma once
#include <stdbool.h>
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Initialize onboard LED GPIO and apply saved NVS state (default: OFF).
*/
esp_err_t board_led_init(void);
/**
* @brief Get current onboard LED enabled state.
*/
bool board_led_get_enabled(void);
/**
* @brief Set onboard LED state and persist to NVS.
*/
void board_led_set_enabled(bool enabled);
#ifdef __cplusplus
}
#endif