Add shake emotion with persistent state and calibration
Introduces a new shake emotion animation with a shake-stop transition, including embedded Lottie animation data and a state machine for emotion transitions. Adds a non-volatile storage (NVS) driver for persistent state management, including first-boot detection, boot count, and IMU calibration storage. Updates emotion manager and related headers to support new shake emotion states, and integrates new UI components for calibration and loading animations.
This commit is contained in:
@@ -25,11 +25,13 @@ extern "C" {
|
||||
* @brief Supported emotion types
|
||||
*/
|
||||
typedef enum {
|
||||
EMOTION_IDLE = 0, // Default idle state with blink
|
||||
EMOTION_BLINK, // Single blink animation
|
||||
EMOTION_SURPRISED, // Surprised expression
|
||||
EMOTION_SAD, // Sad expression
|
||||
EMOTION_ANGRY, // Angry expression
|
||||
EMOTION_IDLE = 0, // Default idle state with blink
|
||||
EMOTION_BLINK, // Single blink animation
|
||||
EMOTION_SHAKING, // Currently being shaken
|
||||
EMOTION_SHAKE_STOPPING, // Transition from shaking to idle
|
||||
EMOTION_SURPRISED, // Surprised expression
|
||||
EMOTION_SAD, // Sad expression
|
||||
EMOTION_ANGRY, // Angry expression
|
||||
EMOTION_COUNT
|
||||
} EmotionType;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user