Add pedometer arithmetic and update acc x and y data diplay timely in 25Hz

pedometer arithmetic draft works but is not displayed.
add a timer in apple.c for acc x and y data read.