dfsf
Fork of MPU6050 by
Revision 7:605303510215, committed 2016-01-25
- Comitter:
- mcthemax
- Date:
- Mon Jan 25 13:22:31 2016 +0000
- Parent:
- 6:5b90f2b5e6d9
- Commit message:
- ddd
Changed in this revision
MPU6050.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MPU6050.cpp Wed Aug 05 13:15:07 2015 +0000 +++ b/MPU6050.cpp Mon Jan 25 13:22:31 2016 +0000 @@ -31,10 +31,10 @@ #include "MPU6050.h" /* For LPC1768 board */ -//I2C i2c(p9,p10); // setup i2c (SDA,SCL) +I2C i2c(p9,p10); // setup i2c (SDA,SCL) /* For NUCLEO-F411RE board */ -static I2C i2c(D14,D15); // setup i2c (SDA,SCL) +//static I2C i2c(D14,D15); // setup i2c (SDA,SCL) /* Set initial input parameters */ @@ -142,17 +142,17 @@ void MPU6050::whoAmI() { uint8_t whoAmI = readByte(MPU6050_ADDRESS, WHO_AM_I_MPU6050); // Should return 0x68 - pc.printf("I AM 0x%x \r\n",whoAmI); + //pc.printf("I AM 0x%x \r\n",whoAmI); if(whoAmI==0x68) { - pc.printf("MPU6050 is online... \r\n"); - led2=1; + //pc.printf("MPU6050 is online... \r\n"); + //led2=1; } else { - pc.printf("Could not connect to MPU6050 \r\nCheck the connections... \r\n"); - toggler1.attach(&toggle_led1,0.1); // toggles led1 every 100 ms + //pc.printf("Could not connect to MPU6050 \r\nCheck the connections... \r\n"); + //toggler1.attach(&toggle_led1,0.1); // toggles led1 every 100 ms } }