Animation On Accelerometer

Hi, i am facing a problem 

can anyone tell me how to do animation from a spritesheet(changing sprites) on accelerometer onTilt function??