    Serial.print(yRange[0]); Serial.print(", "); Serial.println(yRange[1]);
 }
 
+
 float clamp(float value, float min_, float max_) {
   return (value < min_) ? min_ : (value > max_) ? max_ : value;
 }
+
 
 void displaySensorDetails(void) {
   sensor_t accel, mag, gyro, temp;

  lsm.getEvent(&accel, &mag, &gyro, &temp);  
}

void dof_loop() {
  /* Get a new sensor event */
  sensors_event_t accel, mag, gyro, temp;

float xRange[] = {0,0};
float yRange[] = {0,0};

const int MOUSE_LEFT_PIN = 10,
          MOUSE_MID_PIN   = 8,
          MOUSE_RIGHT_PIN = 6;
    
uint16_t lasttouched = 0,
         currtouched = 0;


// Configures the gain and integration time for the TSL2561
void configureSensor(void) {
