Refactor project structure and update display logic
Reorganized source files into new directories for config, drivers, sensors, emotion engine, and UI. Removed legacy assets and code related to previous eye animation implementation. Added new display and touch drivers, emotion manager, shake detector, and UI components. Updated CMake project name to 'irobot_display'.
This commit is contained in:
46
main/ui/splash_screen.h
Normal file
46
main/ui/splash_screen.h
Normal file
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* @file splash_screen.h
|
||||
* @brief Splash screen display interface
|
||||
*
|
||||
* This module displays a startup splash screen with the company logo.
|
||||
* The splash screen blocks for a configurable duration before returning.
|
||||
*/
|
||||
|
||||
#ifndef SPLASH_SCREEN_H
|
||||
#define SPLASH_SCREEN_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Configuration
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// Duration the splash screen is displayed (milliseconds)
|
||||
#define SPLASH_SCREEN_DURATION_MS 2000
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Public Interface
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* @brief Display the splash screen
|
||||
*
|
||||
* Creates a temporary LVGL screen, displays the logo image centered,
|
||||
* waits for the configured duration, then cleans up.
|
||||
* This function blocks for SPLASH_SCREEN_DURATION_MS.
|
||||
*
|
||||
* @note The display driver must be initialized before calling this.
|
||||
* @note This function should be called with the LVGL mutex held.
|
||||
*/
|
||||
void splashScreenShow(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // SPLASH_SCREEN_H
|
||||
Reference in New Issue
Block a user