Files
MTGcompanion/main/board_led.h
Rasmus a30ea5429f
All checks were successful
ESP32 Build & Release / build (push) Successful in 1m16s
Settings: disable onboard LED
2026-09-14 00:02:59 +02:00

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