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:
2026-01-24 20:02:04 +05:30
parent 8aeaed8a15
commit 4d68a788ad
22 changed files with 5255 additions and 93 deletions

View File

@@ -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;