 
   if(EL == 0 && XEL == 0)
   {
-    Fire(55,120,5);
+    Fire2012WithPalette(); // run simulation frame, using palette colors
+    FastLED.show(); // display this frame
+    FastLED.delay(1000 / FRAMES_PER_SECOND);
   }
   else
   {
     if(Transmit)
     {
-      allSet(strip.Color(50,50,50),10);
-      strip.show();
+      //allSet(CRGB::Black);
+      leds[stickone[index]] = CRGB::White;
+      leds[sticktwo[index]] = CRGB::White;
+      leds[stickthree[index]] = CRGB::White;
+      leds[stickfour[index]] = CRGB::White;
+      leds[stickone[index]].fadeLightBy(brightness);
+      leds[sticktwo[index]].fadeLightBy(brightness);
+      leds[stickthree[index]].fadeLightBy(brightness);
+      leds[stickfour[index]].fadeLightBy(brightness);
+      
+      //allSet(strip.Color(50,50,50),10);
+      FastLED.show();
+      delay(100);
+      index++;
+      if(index >= 8)
+      {
+        index = 0;
+        brightness = brightness + fadeAmount;
+        // reverse the direction of the fading at the ends of the fade: 
+        if(brightness == 0 || brightness == 255)
+        {
+          fadeAmount = -fadeAmount ; 
+        } 
+      }
+      Serial.println("Transmitting");
     }
     else
     {
-      allSet(strip.Color(50,0,0),10);
-      strip.show();
+      allSet(CRGB::Black);
+      //allSet(strip.Color(50,0,0),10);
+      FastLED.show();
     }
   }
 

int oldXEL = 0;
int oldnewEL = 0;
int oldnewXEL = 0;

void setup()
{
  pinMode(ledBluePin, OUTPUT);
  Serial.begin(9600);
  Serial.setTimeout(50);
  strip.begin();

  EL_servo.attach(10);
  XEL_servo.attach(9);

#include <FastLED.h>
#include <Servo.h>
#include <string.h>

#define NUM_LEDS 32
#define DATA_PIN 6
#define BRIGHTNESS  200
#define FRAMES_PER_SECOND 60
CRGBPalette16 gPal;
CRGB leds[NUM_LEDS];
//Connect USB port to Pi USB Port

//Adafruit_NeoPixel strip = Adafruit_NeoPixel(32, 6, NEO_GRB + NEO_KHZ800);
Servo XEL_servo;
Servo EL_servo;
bool gReverseDirection = false;
const int ledBluePin = 13;
String test;
int EL = 0;
