Is Arduino 1.6.13 stable? or Did my MPU6050 just break?

This message edited for readability.

I have the Makeblock Ultimate 2.0 kit that uses the Arduino Mega2560 board and also have Arduino 1.6.13 The example program for the gyroscopic module is built for the MeOrion(#include “MeOrion.h”) so I modified the code to run on my Mega2560("#include MeMegaPi.h"), but noticed that the MeGyro example only works for a few seconds. I question if my MPU6050 broke on the same day I upgraded the software. Is there a workaround that fixes the issue?

The Original example code for the MeOrion follows:

 /**
    * \par Copyright (C), 2012-2016, MakeBlock
    * @file    GyroRotation.ino
    * @author  MakeBlock
    * @version V1.0.0
    * @date    2015/09/09
    * @brief   Description: this file is sample code for MeGyro device.
    *
    * Function List:
    * 1. void MeGyro::begin(void)
    * 2. void MeGyro::update(void) 
    * 3. double MeGyro::angleX(void)
    * 4. double MeGyro::angleY(void)
    * 5. double MeGyro::angleZ(void)
    *
    * \par History:
    * <pre>
    * <Author>     <Time>        <Version>      <Descr>
    * Mark Yan     2015/09/09    1.0.0          rebuild the old lib
    * </pre>
    *
    */
   #include "MeOrion.h"
   #include <Wire.h>
   
   MeGyro gyro;
   void setup()
   {
     Serial.begin(115200);
     gyro.begin();
   }
   
   void loop()
   {
     gyro.update();
     Serial.read();
     Serial.print("X:");
     Serial.print(gyro.getAngleX() );
     Serial.print(" Y:");
     Serial.print(gyro.getAngleY() );
     Serial.print(" Z:");
     Serial.println(gyro.getAngleZ() );
     delay(10);
   }

My custimized code for the Mega2560 board ("#include MeMegaPi.h") follows:

 /**
    * \par Copyright (C), 2012-2016, MakeBlock
    * @file    GyroRotation.ino
    * @author  MakeBlock
    * @version V1.0.0
    * @date    2015/09/09
    * @brief   Description: this file is sample code for MeGyro device.
    *
    * Function List:
    * 1. void MeGyro::begin(void)
    * 2. void MeGyro::update(void) 
    * 3. double MeGyro::angleX(void)
    * 4. double MeGyro::angleY(void)
    * 5. double MeGyro::angleZ(void)
    *
    * \par History:
    * <pre>
    * <Author>     <Time>        <Version>      <Descr>
    * Mark Yan     2015/09/09    1.0.0          rebuild the old lib
    * </pre>
    *
    */
   #include "MeMegaPi.h"
   #include <Wire.h>
   
   MeGyro gyro;
   void setup()
   {
     Serial.begin(115200);
     gyro.begin();
   }
   
   void loop()
   {
     gyro.update();
     Serial.read();
     Serial.print("X:");
     Serial.print(gyro.getAngleX() );
     Serial.print(" Y:");
     Serial.print(gyro.getAngleY() );
     Serial.print(" Z:");
     Serial.println(gyro.getAngleZ() );
     delay(10);
   }

MeGyroTest_MeMegaPi.ino (913 Bytes)

MeGyroTest.ino (911 Bytes)

Please read the How To Use This Forum post at the top of the Forum by Nick Gammon. It details how to post source code here using code tags. Also, before you post, do a Ctrl-T in the IDE to format the code in a standard C style. It makes it easier for us to read. Finally, most readers here are reluctant to upload any file for fear of viruses and other bad things. Use the code tags instead. You'll get more responses that way.