Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: MPU6050.h
- Revision:
- 8:b1570b99df9e
- Parent:
- 7:56e591a74939
- Child:
- 9:898effccce30
--- a/MPU6050.h Fri Feb 13 01:04:17 2015 +0000 +++ b/MPU6050.h Fri Feb 13 01:16:00 2015 +0000 @@ -73,6 +73,9 @@ #define MPU6050_GYRO_RANGE_1000 2 #define MPU6050_GYRO_RANGE_2000 3 + +#define MPU6050_RA_INT_ENABLE 0x38 //interrupt address + //define how the accelerometer is placed on surface #define X_AXIS 1 #define Y_AXIS 2 @@ -271,7 +274,10 @@ void getAcceleroAngle( float *data ); void getOffset(float *accOffset, float *gyroOffset, int sampleSize); void computeAngle (float *angle, float *accOffset, float *gyroOffset, float *currTime, float *prevTime); - + void enableInt( void ); + void disableInt( void ); + + private: I2C connection;