 // Set the pins used
 	#define chipSelect 10
 	#define ledPin 25
-        #define potPin 14
+        int potPin = 14;
         #define buttonPin 12
 	#define numPixels 7
 

        acc.enableAutoRange(true);

// Set pin modes
	pinMode(chipSelect, OUTPUT);
        pinMode(potPin, INPUT);     
        pinMode(buttonPin, INPUT);     

//Initialize smoothing variables
          for (int thisReading = 0; thisReading < numGaReadings; thisReading++)

	Serial.println("Initializing");
  
// Initialize
	delay(2000);
	Wire.begin();
	initSensors();
	pixels.begin(); 
        gyr.begin(); 
      
// Enable auto-range
