#73 add support for MPU6500
This commit is contained in:
parent
f173b205ae
commit
7b2a99c8a3
@ -66,7 +66,7 @@ void MPU6050_Base::initialize() {
|
||||
* @return True if connection is valid, false otherwise
|
||||
*/
|
||||
bool MPU6050_Base::testConnection() {
|
||||
return getDeviceID() == 0x34;
|
||||
return getDeviceID() == 0x34 || getDeviceID() == 0x38; // Allow both MPU6050 and MPU6000
|
||||
}
|
||||
|
||||
// AUX_VDDIO register (InvenSense demo code calls this RA_*G_OFFS_TC)
|
||||
|
Loading…
Reference in New Issue
Block a user