 #define    ACC_FULL_SCALE_8_G        0x10
 #define    ACC_FULL_SCALE_16_G       0x18
 
-
+boolean cmdPending;
+String cmdStr;
 
 // This function read Nbytes bytes from I2C device at address Address. 
 // Put read bytes starting at register Register in the Data array. 

    Serial.print (mz,DEC);//(mz-700,DEC);  
  
  }
  
   



  I2CwriteByte(MAG_ADDRESS,0x0A,0x16);
  
   pinMode(13, OUTPUT);
  //Timer1.initialize(1000000);         // initialize timer1, and set a 1/2 second period
  //Timer1.attachInterrupt(callback);  // attaches callback() as a timer overflow interrupt

  cmdPending = false;
  
  // Store initial time
  ti=millis();
}


// Counter
