Get Acceleration value (integer) using STM32F4 Discovery

Did any one know how to get acceleration from stm32f4 discovery?
Actually i am trying to calculate the distance.
Kindly help me.
Thanks.

More questions in this forum