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

@@ -95,6 +95,35 @@ void lottieStop(lottie_player_handle_t handle);
*/
void lottieSetLoop(lottie_player_handle_t handle, bool loop);
/**
* @brief Disable natural blink mode
*
* By default, all animations enable natural blink mode. Call this
* to disable it for non-blink animations like shake.
*
* @param handle Handle to the Lottie player instance
*/
void lottieDisableNaturalBlink(lottie_player_handle_t handle);
/**
* @brief Pause the natural blink timer
*
* Temporarily stops the blink timer without disabling natural blink mode.
* Use lottieResumeNaturalBlink to resume.
*
* @param handle Handle to the Lottie player instance
*/
void lottiePauseNaturalBlink(lottie_player_handle_t handle);
/**
* @brief Resume the natural blink timer
*
* Resumes the blink timer that was paused with lottiePauseNaturalBlink.
*
* @param handle Handle to the Lottie player instance
*/
void lottieResumeNaturalBlink(lottie_player_handle_t handle);
/**
* @brief Check if animation is currently playing
*
@@ -119,6 +148,14 @@ uint32_t lottieGetCurrentFrame(lottie_player_handle_t handle);
*/
uint32_t lottieGetTotalFrames(lottie_player_handle_t handle);
/**
* @brief Set the playback speed multiplier
*
* @param handle Handle to the Lottie player instance
* @param speed Speed multiplier (1.0 = native, 2.0 = 2x speed, etc.)
*/
void lottieSetSpeed(lottie_player_handle_t handle, float speed);
/**
* @brief Set the current frame manually
*