 
 
 void setup(void) {
-  Serial.begin(9600);
+  if (DEBUG) Serial.begin(9600);
   
   dof_setup();
   mpr_setup();

  
  switch(id) {
    case MOUSE_LEFT_PIN:
      Serial.println("Left button touched"); Serial.println("");
      Mouse.press(MOUSE_LEFT);
      break;
//    case MOUSE_MID_PIN:
//      Mouse.press(MOUSE_MIDDLE);
//      break;
    case MOUSE_RIGHT_PIN:

void releaseHandler(int id) {
  //Serial.print(id); Serial.println(" released");
    
  switch(id) {
    case MOUSE_LEFT_PIN:
      Mouse.release(MOUSE_LEFT);
      Serial.println("Left button released"); Serial.println("");
      break;
//    case MOUSE_MID_PIN:
//      Mouse.release(MOUSE_MIDDLE);
//      break;
    case MOUSE_RIGHT_PIN:
      Serial.println("Right button released"); Serial.println("");
      Mouse.release(MOUSE_RIGHT);
      break;
  }

}


void displaySensorDetails(int delayAmt) {
  sensor_t accel, mag, gyro, temp;
  lsm.getSensor(&accel, &mag, &gyro, &temp);

  if (DEBUG) {
    Serial.println(F("------------------------------------"));
    Serial.print  (F("Sensor:       ")); Serial.println(accel.name);
    Serial.print  (F("Driver Ver:   ")); Serial.println(accel.version);
    Serial.print  (F("Unique ID:    ")); Serial.println(accel.sensor_id);
    Serial.print  (F("Max Value:    ")); Serial.print(accel.max_value); Serial.println(F(" m/s^2"));
    Serial.print  (F("Min Value:    ")); Serial.print(accel.min_value); Serial.println(F(" m/s^2"));
    Serial.print  (F("Resolution:   ")); Serial.print(accel.resolution); Serial.println(F(" m/s^2"));
    Serial.println(F("------------------------------------"));
    Serial.println(F(""));
  }
  delay(delayAmt);
}
