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

42
main/ui/loading_anim.h Normal file
View File

@@ -0,0 +1,42 @@
/**
* @file loading_anim.h
* @brief Minimalist loading animation
*
* Displays a simple 3-dots animation using LVGL primitive objects.
* Used primarily for the first-boot experience.
*/
#ifndef LOADING_ANIM_H
#define LOADING_ANIM_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
// ----------------------------------------------------------------------------
// Public API
// ----------------------------------------------------------------------------
/**
* @brief Start the loading animation
*
* Creates a modal screen with a 3-dot animation.
* This function blocks the caller for the specified duration?
* No, it typically runs async, but for splash/boot it might be blocking.
*
* @param duration_ms Time to show the animation (0 for indefinite)
*/
void loadingAnimStart(void);
/**
* @brief Stop the loading animation and clean up
*/
void loadingAnimStop(void);
#ifdef __cplusplus
}
#endif
#endif // LOADING_ANIM_H