sa
Diff: MPU6050.cpp
- Revision:
- 4:df70fe9d6635
- Parent:
- 3:3c0727618a3b
diff -r 3c0727618a3b -r df70fe9d6635 MPU6050.cpp --- a/MPU6050.cpp Wed Aug 23 17:25:27 2017 +0000 +++ b/MPU6050.cpp Thu Nov 22 17:46:45 2018 +0000 @@ -68,7 +68,7 @@ float ax,ay,az; float gx,gy,gz; -//#define useDebugSerial +#define useDebugSerial 0 //instead of using pgmspace.h typedef const unsigned char prog_uchar; @@ -105,7 +105,7 @@ { #ifdef useDebugSerial - debugSerial.printf("MPU6050::initialize start\n"); + // debugSerial.printf("MPU6050::initialize start\n"); #endif //i2Cdev.frequency(400000); // fast i2c: 400 kHz @@ -145,7 +145,7 @@ #ifdef useDebugSerial - debugSerial.printf("MPU6050::initialize end\n"); + //debugSerial.printf("MPU6050::initialize end\n"); #endif } @@ -156,11 +156,12 @@ bool MPU6050::testConnection() { #ifdef useDebugSerial - debugSerial.printf("MPU6050::testConnection start\n"); + //debugSerial.printf("MPU6050::testConnection start\n"); #endif uint8_t deviceId = getDeviceID(); + //debugSerial.printf("\n\n____%d___\n",deviceId); #ifdef useDebugSerial - debugSerial.printf("DeviceId = %d\n",deviceId); + //debugSerial.printf("DeviceId = %d\n",deviceId); #endif return deviceId == 0x34; }