Moved and updated emotion asset files, removing old versions from main/emotions and adding new ones to assets/emotions. Introduced emotion_manager module. Updated .gitignore, README, and build configuration files to reflect these changes. Removed assets/logoIro.c and added assets/logoIroScreen.c.
42 lines
686 B
C
42 lines
686 B
C
#ifndef EMOTION_MANAGER_H
|
|
#define EMOTION_MANAGER_H
|
|
|
|
#include "lvgl.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef enum {
|
|
EMOTION_BLINK,
|
|
EMOTION_SMILE,
|
|
EMOTION_SAD,
|
|
EMOTION_COUNT
|
|
} emotion_t;
|
|
|
|
/**
|
|
* @brief Initialize the emotion manager
|
|
*
|
|
* @param parent The parent object (usually the active screen)
|
|
*/
|
|
void emotion_manager_init(lv_obj_t *parent);
|
|
|
|
/**
|
|
* @brief Set the current emotion
|
|
*
|
|
* @param emotion The emotion to display
|
|
*/
|
|
void emotion_manager_set(emotion_t emotion);
|
|
|
|
/**
|
|
* @brief Update the emotion manager (called periodically or via timer
|
|
* internally)
|
|
*/
|
|
void emotion_manager_update(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // EMOTION_MANAGER_H
|