template for jeff
Dependents: i2c_MPU6050_335_template CS335_Final_Project_i2c_MPU6050_Gyro_Mouse
Revision 9:f91e6ad66cf8, committed 2020-11-30
- Comitter:
- mposter
- Date:
- Mon Nov 30 16:39:46 2020 +0000
- Parent:
- 8:0751a6497c6a
- Commit message:
- finalize
Changed in this revision
MPU6050.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 0751a6497c6a -r f91e6ad66cf8 MPU6050.cpp --- a/MPU6050.cpp Sun Nov 29 03:34:53 2020 +0000 +++ b/MPU6050.cpp Mon Nov 30 16:39:46 2020 +0000 @@ -145,16 +145,16 @@ 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); + printf("I AM 0x%x \r\n",whoAmI); if(whoAmI==0x68) { - pc.printf("MPU6050 is online... \r\n"); + printf("MPU6050 is online... \r\n"); led2=1; } else { - pc.printf("Could not connect to MPU6050 \r\nCheck the connections... \r\n"); + printf("Could not connect to MPU6050 \r\nCheck the connections... \r\n"); toggler1.attach(&toggle_led1,0.1); // toggles led1 every 100 ms } }