Files
iroBot/main/emotion_manager.h
Neil Arora d4722157f2 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.
2026-01-14 01:39:12 +05:30

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