#73 add support for MPU6500

This commit is contained in:
Magnus Persson 2022-05-05 17:52:26 +02:00
parent f173b205ae
commit 7b2a99c8a3

View File

@ -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)