[![CI Status](http://img.shields.io/travis/Adam Różyński/MPIMotionKit.svg?style=flat)](https://travis-ci.org/Adam Różyński/MPIMotionKit)
To run the example project, clone the repo, and run pod install
from the Example directory first.
MPIMotionKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "MPIMotionKit"
##Using
###Initialize
MPIMotionManager is a singleton class.
[MPIMotionManager sharedManager];
So using it is super simple. Take code from example:
[[MPIMotionManager sharedManager] getAccelerometerValuesWithTimeInterval:UPDATE_INTERVAL
andHandler:^(MPIMotionData motionAccelData)
{
//do something with motionAccelData like:
NSLog(@"%f %f %f", motionAccelData.x, motionAccelData.y, motionAccelData.z);
}];
Adam Różyński, adam@micropixels.pl
MPIMotionKit is available under the MIT license. See the LICENSE file for more info.