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

@@ -0,0 +1,41 @@
/**
* @file calibration_screen.h
* @brief IMU calibration screen for first-boot experience
*
* Displays a full-screen UI prompting the user to place the device
* on a flat surface and tap to calibrate the IMU. Calibration values
* are stored in NVS for use on subsequent boots.
*/
#ifndef CALIBRATION_SCREEN_H
#define CALIBRATION_SCREEN_H
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
// ----------------------------------------------------------------------------
// Public API
// ----------------------------------------------------------------------------
/**
* @brief Display the calibration screen and perform IMU calibration
*
* This is a blocking function that:
* 1. Displays instructions to place device on flat surface
* 2. Waits for user tap
* 3. Performs IMU baseline calibration
* 4. Stores calibration data to NVS
* 5. Cleans up and returns
*
* @return true on successful calibration, false on failure
*/
bool calibrationScreenShow(void);
#ifdef __cplusplus
}
#endif
#endif // CALIBRATION_SCREEN_H