Fork from Mark Randall MPL3115A2 Altitude/Pressure Sensor. Changed to make it compatible with TiltyQuad TiltyIMU module. By Ian HUA 2014.
Fork of MPL3115A2 by
Revision 3:fb9726aaa41d, committed 2014-05-19
- Comitter:
- pHysiX
- Date:
- Mon May 19 13:18:52 2014 +0000
- Parent:
- 2:87d16ea09abd
- Commit message:
- Changed I2C to I2CRtosDriver
Changed in this revision
MPL3115A2.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MPL3115A2.h Thu May 08 10:45:45 2014 +0000 +++ b/MPL3115A2.h Mon May 19 13:18:52 2014 +0000 @@ -1,4 +1,5 @@ #include "mbed.h" +#include "I2CMasterRtos.h" #ifndef _MPL3115A2_H_ #define _MPL3115A2_H_ @@ -32,7 +33,7 @@ char _SensorData[8]; //Char array that holds the current Altitude and Temperature data - I2C _i2c; + I2CMasterRtos _i2c; //DigitalIn _pin1; //DigitalIn _pin2; };