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.
Revision 4:d1be41e932f2, committed 2018-11-19
- Comitter:
- jiuk
- Date:
- Mon Nov 19 02:10:03 2018 +0000
- Parent:
- 3:0e4b60792553
- Commit message:
- Version no funcional, para sacar trozos de codigo.
Changed in this revision
MPU6050.cpp | Show annotated file Show diff for this revision Revisions of this file |
MPU6050.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MPU6050.cpp Thu Nov 08 12:53:16 2018 +0000 +++ b/MPU6050.cpp Mon Nov 19 02:10:03 2018 +0000 @@ -11,10 +11,11 @@ currentAcceleroRange=0; } + //-------------------------------------------------- //-------------------General------------------------ //-------------------------------------------------- - +/* void MPU6050::write(char address, char data) { char temp[2]; temp[0]=address; @@ -69,7 +70,7 @@ temp &= ~(1<<MPU6050_BYPASS_BIT); this->write(MPU6050_INT_PIN_CFG, temp); } - +*/ //-------------------------------------------------- //----------------Accelerometer--------------------- //-------------------------------------------------- @@ -147,7 +148,7 @@ data[2]*=2; #endif } - +/* //-------------------------------------------------- //------------------Gyroscope----------------------- //-------------------------------------------------- @@ -235,3 +236,4 @@ return retval; } +*/
--- a/MPU6050.h Thu Nov 08 12:53:16 2018 +0000 +++ b/MPU6050.h Mon Nov 19 02:10:03 2018 +0000 @@ -16,7 +16,7 @@ * Defines */ #ifndef MPU6050_ADDRESS - #define MPU6050_ADDRESS 0x68 // 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 @@ -53,7 +53,7 @@ * Definitions */ #define MPU6050_SLP_BIT 6 -#define MPU6050_BYPASS_BIT 1 +#define MPU6050_BYPASS_BIT 1 #define MPU6050_BW_256 0 #define MPU6050_BW_188 1