Skip to content

Commit

Permalink
Fixes to MPU9250 example sketch
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Dec 4, 2024
1 parent 6b5d822 commit 3beb253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/MPU9250/MPU9250.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ void setup() {
if (!success) {
while (1) {
Serial.println("Failed to initialize IMU");
delay(1000);
delay(5000);
}
}
}
Expand All @@ -21,7 +21,7 @@ void loop() {
IMU.getAccel(ax, ay, az);
IMU.getMag(mx, my, mz);
// Print data for Serial Plotter:
Serial.print("gx:"); Serial.print(gx); Serial.print(" gy:"); Serial.print(gy); Serial.print(" gz:"); Serial.println(gz);
Serial.print("gx:"); Serial.print(gx); Serial.print(" gy:"); Serial.print(gy); Serial.print(" gz:"); Serial.print(gz);
Serial.print(" ax:"); Serial.print(ax); Serial.print(" ay:"); Serial.print(ay); Serial.print(" az:"); Serial.print(az);
Serial.print(" mx:"); Serial.print(mx); Serial.print(" my:"); Serial.print(my); Serial.print(" mz:"); Serial.println(mz);
delay(50); // slow down the output
Expand Down

0 comments on commit 3beb253

Please sign in to comment.