 //const int MPU=0x68;  // I2C address of the MPU-6050
 const int MPU=0x69;  // I2C address of the MPU-6050 for AD0=1
 int16_t AcX,AcY,AcZ,Tmp,GyX,GyY,GyZ;
-
+long time;
 
 void setup()
 {

  }
  
  
  Serial.begin( 9600 );
  Serial.print( "I2C test ...\n" );
}

void readIthGyro( int i )
{
  digitalWrite( gyroSelectPins[i], 1 );  // select i-th gyro
  delay(10);
  Wire.beginTransmission(MPU);
  Wire.write(0x3B);  // starting with register 0x3B (ACCEL_XOUT_H)
  Wire.endTransmission(false);
  Wire.requestFrom(MPU,14,true);  // request a total of 14 registers
  AcX=Wire.read()<<8|Wire.read();  // 0x3B (ACCEL_XOUT_H) & 0x3C (ACCEL_XOUT_L)    
  AcY=Wire.read()<<8|Wire.read();  // 0x3D (ACCEL_YOUT_H) & 0x3E (ACCEL_YOUT_L)

  GyY=Wire.read()<<8|Wire.read();  // 0x45 (GYRO_YOUT_H) & 0x46 (GYRO_YOUT_L)
  GyZ=Wire.read()<<8|Wire.read();  // 0x47 (GYRO_ZOUT_H) & 0x48 (GYRO_ZOUT_L)
  digitalWrite( gyroSelectPins[i], 0 ); // unselect
  delay(1);
}

void loop()
