fork from > MPU6050 library that is kinda beta and will probably never leave beta but it might help some people.
Fork of MPU6050 by
Diff: MPU6050.h
- Revision:
- 3:56c385fd3617
- Parent:
- 2:5c63e20c50f3
--- a/MPU6050.h Mon Sep 10 21:26:25 2012 +0000 +++ b/MPU6050.h Sun May 20 05:49:35 2018 +0000 @@ -16,7 +16,7 @@ * Defines */ #ifndef MPU6050_ADDRESS - #define MPU6050_ADDRESS 0x69 // address pin low (GND), default for InvenSense evaluation board +#define MPU6050_ADDRESS 0x68 // address pin low (GND), default for InvenSense evaluation board #endif #ifdef MPU6050_ES @@ -132,28 +132,28 @@ * * @return 16-bit signed integer x-axis accelero data */ - int getAcceleroRawX( void ); + short getAcceleroRawX( void ); /** * Reads the accelero y-axis. * * @return 16-bit signed integer y-axis accelero data */ - int getAcceleroRawY( void ); + short getAcceleroRawY( void ); /** * Reads the accelero z-axis. * * @return 16-bit signed integer z-axis accelero data */ - int getAcceleroRawZ( void ); + short getAcceleroRawZ( void ); /** * Reads all accelero data. * * @param data - pointer to signed integer array with length three: data[0] = X, data[1] = Y, data[2] = Z */ - void getAcceleroRaw( int *data ); + void getAcceleroRaw( short *data ); /** * Reads all accelero data, gives the acceleration in m/s2 @@ -178,28 +178,28 @@ * * @return 16-bit signed integer x-axis gyro data */ - int getGyroRawX( void ); + short getGyroRawX( void ); /** * Reads the gyro y-axis. * * @return 16-bit signed integer y-axis gyro data */ - int getGyroRawY( void ); + short getGyroRawY( void ); /** * Reads the gyro z-axis. * * @return 16-bit signed integer z-axis gyro data */ - int getGyroRawZ( void ); + short getGyroRawZ( void ); /** * Reads all gyro data. * * @param data - pointer to signed integer array with length three: data[0] = X, data[1] = Y, data[2] = Z */ - void getGyroRaw( int *data ); + void getGyroRaw( short *data ); /** * Reads all gyro data, gives the gyro in rad/s