     runningSum -= entries[j % 10];
     entries[j % 10] = readGyro();
     runningSum += entries[j % 10];
-    Serial.println(getAverage(), 2);
+    float newAverage = getAverage();
+    Serial.println(newAverage - oldAverage, 2); // Print drift in 100 ms
+    oldAverage = newAverage;
     j++;
     int_flag = false;
   }

    entries[i] = readGyro();
    runningSum += entries[i];
  } // fill up the rolling average
  
  xy.attach(3); // pro mini pwm pin
  xy.write(0); // Start at a well-defined value

    Serial.println(" GND     | GND");
    Serial.println(" A4      | SDA");
    Serial.println(" A5      | SCL");
    while (!imu.begin()) {
      Serial.println(" [ FAILED ] ");
      blinkLED();
      Serial.print("Connecting...");
      delay(1000);
    }
    Serial.println("[ SUCCESS ] ");
  }
  Serial.println(" [ DONE ] ");
  
