Separate animation.c

Animation works, but the app cause firmware crash