From 3beb253010ca4fd2aff213cd044282970f427e51 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Wed, 4 Dec 2024 09:30:38 +0300 Subject: [PATCH] Fixes to MPU9250 example sketch --- examples/MPU9250/MPU9250.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/MPU9250/MPU9250.ino b/examples/MPU9250/MPU9250.ino index 718cae7..a139927 100644 --- a/examples/MPU9250/MPU9250.ino +++ b/examples/MPU9250/MPU9250.ino @@ -9,7 +9,7 @@ void setup() { if (!success) { while (1) { Serial.println("Failed to initialize IMU"); - delay(1000); + delay(5000); } } } @@ -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