Init New
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* Debug Monitor Module for ESP32-S3-LCD-1.3 (Controller B)
|
||||
*
|
||||
* Synchronizes LVGL performance and memory monitor visibility with Controller A.
|
||||
* Monitors are shown/hidden based on the debug_enabled flag received via UART.
|
||||
*/
|
||||
|
||||
#ifndef DEBUG_MONITOR_H
|
||||
#define DEBUG_MONITOR_H
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
namespace DebugMonitor {
|
||||
|
||||
/**
|
||||
* @brief Initialize debug monitor module
|
||||
*
|
||||
* Must be called after LVGL and display initialization.
|
||||
*/
|
||||
void init();
|
||||
|
||||
/**
|
||||
* @brief Set debug monitor visibility
|
||||
*
|
||||
* Controls the visibility of LVGL's built-in performance and memory monitors.
|
||||
* This should be called when receiving packets from Controller A to sync
|
||||
* with the debug_enabled flag.
|
||||
*
|
||||
* @param enabled True to show monitors, false to hide them
|
||||
*/
|
||||
void setVisible(bool enabled);
|
||||
|
||||
/**
|
||||
* @brief Get current debug monitor visibility state
|
||||
*
|
||||
* @return true if monitors are visible, false if hidden
|
||||
*/
|
||||
bool isVisible();
|
||||
|
||||
} // namespace DebugMonitor
|
||||
|
||||
#endif // DEBUG_MONITOR_H
|
||||
Reference in New Issue
Block a user