We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61b94b9 commit fcbd4ffCopy full SHA for fcbd4ff
lib/mpu6050/MPU6050.cpp
@@ -67,7 +67,12 @@ void MPU6050::initialize(uint8_t address) {
67
*/
68
bool MPU6050::testConnection() {
69
uint8_t deviceId = getDeviceID();
70
- return deviceId == 0x68 || deviceId == 0x70 || deviceId == 0x71 || deviceId == 0x73; // Allow any MPUs
+ // 0x68 -> MPU-6050
71
+ // 0x70 -> MPU-6500
72
+ // 0x71 -> MPU-9250
73
+ // 0x73 -> MPU-9255
74
+ // 0x74 -> MPU-6515
75
+ return deviceId == 0x68 || deviceId == 0x70 || deviceId == 0x71 || deviceId == 0x73 || deviceId == 0x74;
76
}
77
78
// AUX_VDDIO register (InvenSense demo code calls this RA_*G_OFFS_TC)
0 commit comments