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:
1
main/emotion-engine/shake/shaking.json
Normal file
1
main/emotion-engine/shake/shaking.json
Normal file
@@ -0,0 +1 @@
|
||||
{"fr":60,"h":448,"ip":0,"layers":[{"ind":3,"ty":4,"parent":2,"ks":{},"ip":0,"op":16,"st":0,"shapes":[{"ty":"rc","p":{"a":0,"k":[48.5,68]},"r":{"a":0,"k":20},"s":{"a":0,"k":[97,136]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":2,"ty":3,"parent":1,"ks":{"p":{"a":1,"k":[{"t":0,"s":[211,88],"i":{"x":[0.613,1],"y":[0.589,1]},"o":{"x":[0.321,0],"y":[0.033,0]}},{"t":0.696,"s":[249.6,88],"i":{"x":[0.591,1],"y":[0.993,1]},"o":{"x":[0.319,0],"y":[0.678,0]}},{"t":1.386,"s":[268.932,88],"i":{"x":[0.447,1],"y":[0.987,1]},"o":{"x":[0.279,0],"y":[0.02,0]}},{"t":2.772,"s":[259.742,88],"i":{"x":[0.442,1],"y":[0.994,1]},"o":{"x":[0.279,0],"y":[0,0]}},{"t":4.176,"s":[261.2,88],"i":{"x":[0.446,1],"y":[0.987,1]},"o":{"x":[0.281,0],"y":[0.02,0]}},{"t":5.562,"s":[260.968,88],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":7.5,"s":[261.002,88],"h":1},{"t":7.5,"s":[261,88],"i":{"x":[0.613,1],"y":[0.589,1]},"o":{"x":[0.321,0],"y":[0.033,0]}},{"t":8.196,"s":[183.801,88],"i":{"x":[0.591,1],"y":[0.993,1]},"o":{"x":[0.319,0],"y":[0.678,0]}},{"t":8.886,"s":[145.137,88],"i":{"x":[0.447,1],"y":[0.987,1]},"o":{"x":[0.279,0],"y":[0.02,0]}},{"t":10.272,"s":[163.515,88],"i":{"x":[0.442,1],"y":[0.994,1]},"o":{"x":[0.279,0],"y":[0,0]}},{"t":11.676,"s":[160.601,88],"i":{"x":[0.446,1],"y":[0.987,1]},"o":{"x":[0.281,0],"y":[0.02,0]}},{"t":13.062,"s":[161.063,88],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":15,"s":[160.996,88],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":15,"s":[160.998,88],"h":1}]}},"ip":0,"op":16,"st":0},{"ind":5,"ty":4,"parent":4,"ks":{},"ip":0,"op":16,"st":0,"shapes":[{"ty":"rc","p":{"a":0,"k":[48.5,67.5]},"r":{"a":0,"k":20},"s":{"a":0,"k":[97,135]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":4,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[48.5,67.5]},"p":{"a":1,"k":[{"t":0,"s":[108.5,155.5],"i":{"x":[0.613,1],"y":[0.589,1]},"o":{"x":[0.321,0],"y":[0.033,0]}},{"t":0.696,"s":[147.1,155.5],"i":{"x":[0.591,1],"y":[0.993,1]},"o":{"x":[0.319,0],"y":[0.678,0]}},{"t":1.386,"s":[166.432,155.5],"i":{"x":[0.447,1],"y":[0.987,1]},"o":{"x":[0.279,0],"y":[0.02,0]}},{"t":2.772,"s":[157.242,155.5],"i":{"x":[0.442,1],"y":[0.994,1]},"o":{"x":[0.279,0],"y":[0,0]}},{"t":4.176,"s":[158.7,155.5],"i":{"x":[0.446,1],"y":[0.987,1]},"o":{"x":[0.281,0],"y":[0.02,0]}},{"t":5.562,"s":[158.468,155.5],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":7.5,"s":[158.502,155.5],"h":1},{"t":7.5,"s":[158.5,155.5],"i":{"x":[0.613,1],"y":[0.589,1]},"o":{"x":[0.321,0],"y":[0.033,0]}},{"t":8.196,"s":[81.301,155.5],"i":{"x":[0.591,1],"y":[0.993,1]},"o":{"x":[0.319,0],"y":[0.678,0]}},{"t":8.886,"s":[42.637,155.5],"i":{"x":[0.447,1],"y":[0.987,1]},"o":{"x":[0.279,0],"y":[0.02,0]}},{"t":10.272,"s":[61.015,155.5],"i":{"x":[0.442,1],"y":[0.994,1]},"o":{"x":[0.279,0],"y":[0,0]}},{"t":11.676,"s":[58.101,155.5],"i":{"x":[0.446,1],"y":[0.987,1]},"o":{"x":[0.281,0],"y":[0.02,0]}},{"t":13.062,"s":[58.563,155.5],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":15,"s":[58.496,155.5],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":15,"s":[58.498,155.5],"h":1}]}},"ip":0,"op":16,"st":0},{"ind":1,"ty":3,"parent":0,"ks":{},"ip":0,"op":16,"st":0},{"ind":6,"ty":4,"parent":0,"ks":{},"ip":0,"op":16,"st":0,"shapes":[{"ty":"rc","p":{"a":0,"k":[184,224]},"r":{"a":0,"k":0},"s":{"a":0,"k":[368,448]}},{"ty":"fl","c":{"a":0,"k":[0,0,0]},"o":{"a":0,"k":100}}]},{"ind":0,"ty":3,"ks":{},"ip":0,"op":16,"st":0}],"meta":{"g":"https://jitter.video"},"op":15,"v":"5.7.4","w":368}
|
||||
Reference in New Issue
Block a user