 /*                                                  */
 /* Uncomment only ONE line at a time.               */
 /****************************************************/
-/* #define TIMER; */
-#define TILT;
-/* #define WHEEL; */
+#define TIMER
+/* #define TILT */
+/* #define WHEEL */
 
 const int LED_PIN = 6;
 


const int LEDS = 60;
const int TIMEFRAME = 500;
// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:

    return lookupColor(pixelIndex);
}

// Last tick for the timer based interface.
unsigned long lastTick = 0;

// The frame (column) being shown for the timer based interface.
int frame = 0;

void loop() {
  /**********************/
  /* Accelerometer code */
  /**********************/

  int pulseX = pulseIn(ACCEL_X_PIN, HIGH);
  int pulseY = pulseIn(ACCEL_Y_PIN, HIGH);
  float angle = atan2(pulseX-NO_TILT, pulseY-NO_TILT);

  /******************/
  /* LED strip code */
  /******************/

#ifdef TIMER
  unsigned long time = millis();
  if (time - lastTick > TIMEFRAME) {
    frame++;
    lastTick = time;
  }
#endif /* TIMER */

  for (int led = 0; led < LEDS; led++) {
    uint32_t c;

#ifdef TIMER
    c = timerColorLookup(led, frame);
#endif /* TIMER */

#ifdef TILT
    c = tiltColorLookup(led, angle);
#endif /* TILT */

#ifdef WHEEL
    c = wheelColorLookup(led, angle);
#endif /* WHEEL */
