Settings: disable onboard LED
All checks were successful
ESP32 Build & Release / build (push) Successful in 1m16s
All checks were successful
ESP32 Build & Release / build (push) Successful in 1m16s
This commit is contained in:
27
main/board_led.h
Normal file
27
main/board_led.h
Normal 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
|
||||
Reference in New Issue
Block a user