The goal of this script is to demonstrate the usage of accelerometer.
The orientation specification can be found here.