All checks were successful
ESP32 Build & Release / build (push) Successful in 1m16s
28 lines
441 B
C
28 lines
441 B
C
#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
|