+#include <EEPROM.h>
+
 // This is the example sketch that gets loaded on every BlinkyTape during production!
 #include <FastLED.h>
 #include <Animation.h>

#define BUTTON_PATTERN_SWITCH_TIME    1000   // Time to hold the button down to switch patterns


uint8_t currentPattern = 0;
uint8_t patternCount = 0;
#define MAX_PATTERNS 10

  registerPattern(new Scanner(4, CRGB(255,0,0)));
  registerPattern(new Shimmer(0));
  

  // Attempt to read in the last used pattern; if it's an invalid
  // number, initialize it to 0 instead.
  currentPattern = EEPROM.read(PATTERN_EEPROM_ADDRESS);
  if(currentPattern >= patternCount) {
    currentPattern = 0;
  }
  
  initializePattern(currentPattern);
}

void loop()
