Refactor emotion assets and update documentation
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.
This commit is contained in:
41
main/emotion_manager.h
Normal file
41
main/emotion_manager.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user