34b3fc7ec0
Firmware / build (push) Successful in 4m1s
include/ui (SquareLine export: ui_init, placeholder screen, helpers, theme manager, project metadata) is no longer used - every screen is hand-coded. The one live line, the dark default LVGL theme, moves to display_init.cpp. Build filter and include path drop include/ui. Comments, CLAUDE.md and the stale README sections (features, layout, partitions) updated. Verified on the board (USB, dev): Wi-Fi on/forget/scan/join, dark keyboard and dialogs, update check + install of v0.1.5 from the screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
39 lines
861 B
C++
39 lines
861 B
C++
/*
|
|
* UI State Manager Module
|
|
*
|
|
* Holds the debug flag (sent to Controller B, shows LVGL's performance overlay).
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
#include <lvgl.h>
|
|
|
|
namespace UIStateManager {
|
|
|
|
// ============================================================================
|
|
// PUBLIC API
|
|
// ============================================================================
|
|
|
|
/**
|
|
* @brief Initialize the UI State Manager
|
|
*
|
|
* This function:
|
|
* - Initializes internal state tracking variables
|
|
*/
|
|
void init();
|
|
|
|
/**
|
|
* @brief Enable or disable debug mode (LVGL performance and memory monitors)
|
|
* @param enabled True to enable debug monitors, false to disable
|
|
*/
|
|
void setDebugEnabled(bool enabled);
|
|
|
|
/**
|
|
* @brief Get current debug mode state
|
|
* @return True if debug mode is enabled, false otherwise
|
|
*/
|
|
bool isDebugEnabled();
|
|
|
|
} // namespace UIStateManager
|