MPU6050 FreeIMU library
Dependents: FreeIMU FreeIMU_external_magnetometer
Fork of MPU6050_tmp by
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.
Diff: I2Cdev.h
- Revision:
- 7:95e74f827c08
- Parent:
- 2:3cf70c42a784
- Child:
- 9:d879deb55ae1
--- a/I2Cdev.h Sat Jun 22 11:23:45 2013 +0000 +++ b/I2Cdev.h Sat Nov 02 17:23:43 2013 +0000 @@ -20,6 +20,7 @@ public: I2Cdev(); I2Cdev(PinName i2cSda, PinName i2cScl); + I2Cdev(I2C i2c_); int8_t readBit(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t *data, uint16_t timeout=I2Cdev::readTimeout()); int8_t readBitW(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint16_t *data, uint16_t timeout=I2Cdev::readTimeout());