Qian Yuyang
/
Ex_4Rotor_template
NRF+MPU6050
Diff: MPU6050.h
- Revision:
- 5:6a93542b8922
- Parent:
- 4:1b985e622d26
diff -r 1b985e622d26 -r 6a93542b8922 MPU6050.h --- a/MPU6050.h Wed Mar 20 10:44:31 2019 +0000 +++ b/MPU6050.h Mon Apr 15 05:16:57 2019 +0000 @@ -696,9 +696,9 @@ // Read the WHO_AM_I register, this is a good test of communication uint8_t whoami = readByte(MPU6050_ADDRESS, WHO_AM_I_MPU6050); // Read WHO_AM_I register for MPU-6050 - //pc.printf("I AM 0x%x\n\r", whoami); pc.printf("I SHOULD BE 0x68\n\r"); +// Serial_2.printf("I AM 0x%x\n\r", whoami); Serial_2.printf("I SHOULD BE 0x68\n\r"); - if (whoami == 0x68) // WHO_AM_I should always be 0x68 + if (whoami == 0x98) // WHO_AM_I should always be 0x68 { //pc.printf("MPU6050 is online..."); wait(1);