Skip to content

rurza/MPIMotionKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MPIMotionKit

[![CI Status](http://img.shields.io/travis/Adam Różyński/MPIMotionKit.svg?style=flat)](https://travis-ci.org/Adam Różyński/MPIMotionKit) Version License Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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);
}];

Author

Adam Różyński, adam@micropixels.pl

License

MPIMotionKit is available under the MIT license. See the LICENSE file for more info.

About

simple Objective-C wrapper for CoreMotion

Resources

License

Stars

Watchers

Forks

Packages

No packages published