Skip to content

Commit

Permalink
Added support for MPU6500 basic functionality (#581)
Browse files Browse the repository at this point in the history
* Update iSpindel.cpp

* Update iSpindel.cpp

* Update iSpindel.cpp

* Update iSpindel.cpp

* Update main.yml

* Update iSpindel.cpp

* Update iSpindel.cpp

* Update iSpindel.cpp

* Update main.yml
  • Loading branch information
Bananamannn authored May 17, 2022
1 parent f176848 commit 6772058
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pio/src/iSpindel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,11 @@ bool testAccel()
if (res != I2C_OK)
CONSOLELN(String(F("I2C ERROR: ")) + res);

bool con = accelgyro.testConnection();
bool con = false;
auto id = accelgyro.getDeviceID();
if (id == 0x34 || id == 0x38) //0x34 = MPU6050 | 0x38 = MPU6500
con = true;

if (!con)
CONSOLELN(F("Acc Test Connection ERROR!"));

Expand Down

0 comments on commit 6772058

Please sign in to comment.