MPU6050 FreeIMU library

Dependents:   FreeIMU FreeIMU_external_magnetometer

Fork of MPU6050_tmp by Aloïs Wolff

Async MPU6050 library

My port of the MPU6050 library samples the chip at 500Hz using Timer. Async I2C is achieved using a custom I2C library, which supports I2C calls from interrupts. Link given below:

Import libraryMODI2C

Improvements to Olieman's MODI2C library. Supports calls from IRQ.

Difference between this port and the Arduino MPU6050 library

The getMotion6 function only returns a copy of the last obtained readings, which is sampled at a frequency of 500Hz (adjustable). Hence it can be called at any frequency without taxing the I2C.

Revision:
6:40ac13ef7290
Parent:
0:662207e34fba
Child:
7:95e74f827c08
--- a/MPU6050.h	Wed Feb 20 18:29:30 2013 +0000
+++ b/MPU6050.h	Sat Jun 22 11:23:45 2013 +0000
@@ -420,6 +420,7 @@
         // SMPLRT_DIV register
         uint8_t getRate();
         void setRate(uint8_t rate);
+        
 
         // CONFIG register
         uint8_t getExternalFrameSync();