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'.
55 lines
1021 B
C
55 lines
1021 B
C
/**
|
|
* @file blink_emotion.h
|
|
* @brief Blink emotion animation interface
|
|
*
|
|
* This module handles the idle blink animation using Lottie.
|
|
* It plays the eyes open/close animation with natural random intervals.
|
|
*/
|
|
|
|
#ifndef BLINK_EMOTION_H
|
|
#define BLINK_EMOTION_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Initialize the blink emotion
|
|
*
|
|
* Loads the blink animation data and prepares the Lottie player.
|
|
* Must be called after display driver initialization.
|
|
*
|
|
* @return true on success, false on failure
|
|
*/
|
|
bool blinkEmotionInit(void);
|
|
|
|
/**
|
|
* @brief Start or trigger the blink animation
|
|
*
|
|
* Starts the natural blink loop with random intervals.
|
|
*/
|
|
void blinkEmotionPlay(void);
|
|
|
|
/**
|
|
* @brief Pause the blink animation
|
|
*/
|
|
void blinkEmotionPause(void);
|
|
|
|
/**
|
|
* @brief Stop and cleanup the blink animation
|
|
*/
|
|
void blinkEmotionStop(void);
|
|
|
|
/**
|
|
* @brief Trigger a single blink immediately
|
|
*/
|
|
void blinkEmotionTrigger(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // BLINK_EMOTION_H
|