     else if( owner == enlightened )
     {
       red = 0x1f; green = 0xff; blue = 0; white = 0;
+      useAnimations = true;
     }
   
-    for(i=0; i < strip.numPixels(); i++)
-    {
-        //strip.setPixelColor(i, green,blue,red); // for RGB order is funny?
-//        strip.setPixelColor(i, green, red, blue,white);
-        strip.setPixelColor(i, green, red, blue);
-        float scale = ((millis()/100)%100)/200.0 + 0.5;
-        float pct = percent * scale;
-//        Serial.print("Percent: "); Serial.println(pct, 4);
-        strip.setBrightness((uint8_t)((uint16_t)(255*(pct/100.0))));
-    }    
-    strip.show();
+    if (useAnimations) {
+        strip.setBrightness(255);
+        animations.pulse.doFrame(states[0], strip);
+    } else {
+        for(i=0; i < strip.numPixels(); i++)
+        {
+            //strip.setPixelColor(i, green,blue,red); // for RGB order is funny?
+            //        strip.setPixelColor(i, green, red, blue,white);
+            strip.setPixelColor(i, red, green, blue);
+            //        float scale = ((millis()/100)%100)/200.0 + 0.5;
+            float scale = 1.0f;
+            float pct = percent * scale;
+            //        Serial.print("Percent: "); Serial.println(pct, 4);
+            strip.setBrightness((uint8_t)((uint16_t)(255*(pct/100.0))));
+        }
+        strip.show();
+    }
   
     dir++;
     if( dir >= NUM_STRINGS )

    {
      owner = enlightened;
      percent = getPercent(&command[1]);
    }
    else if( command[0] == 'r' || command[0] == 'R' )
    {


// first communication pin for neo pixel string
#define BASE_PIN 2

#define NUM_STRINGS 1 // one for each resonator
//#define NUM_STRINGS 8 // one for each resonator

const uint16_t LEDS_PER_STRAND = 50;

enum Direction { NORTH = 0, NORTHEAST, EAST, SOUTHEAST, SOUTH, SOUTHWEST, WEST, NORTHWEST };
enum Ownership {  neutral = 0, enlightened, resistance };
