 
 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);
}

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

  // variables to read the pulse widths:
  int pulseX, pulseY;
  float angle;

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

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

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

#ifdef TIMER
    int i = 0;
    c = timer.setInterval(TIMEFRAME, timerColorLookup(led, i++));
    noLoop();

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

  }
  return strip.Color(rgb.r, rgb.g, rgb.b);
}

// Lookup the pixel's color for the timer based interface.
uint32_t timerColorLookup(int led, int frame) {
  int pixelIndex = frame % IMAGE_WIDTH + led * IMAGE_WIDTH;
  return lookupColor(pixelIndex);
}

// Lookup the pixel's color for the tilt based interface.
uint32_t tiltColorLookup(int led, float angle) {
    const float originX = IMAGE_WIDTH / 2;
    const float originY = IMAGE_HEIGHT - 1;
