Fastled library help

hey guys so ive got a code and googled how to add a second strip in fastled library so i did it as i saw in one of the post but i get a new error please help

Hi,
I saw that you are not a new user.
How many forum posts have you read?
Don't understand that you shouldn't post a picture of the code?
Post the code separated by the appropriate </> tags.

Hello well i am new registered like a week ago about and this is my second post amd ive searched stuff or errors on google and came acros a few stuff that put me in the right direction but now im stuck at this error

Please read the forum guidelines to see how to properly post code and some information on making a good post.

Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

Please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.

I think I see the problem. With properly posted code I will be able to tell for sure.

#include <Adafruit_NeoPixel.h>
#include <FastLED.h>

int  dataPin  = 6;
int  dataPina  = 7;
int  dataPinb  = 8;

#define DATA_PIN 6
#define DATA_PINa 7
#define DATA_PINb 8

//#define PIN 6
//#define PINA 7
//#define PINB 8

#define NUM_LEDS 58
#define numberOfPixels  58
#define maximumBrightness  10
#ifdef __AVR__
#include <avr/power.h>
#endif
#define NUM_STRIPS 2
#define NUM_LEDS_PER_STRIP1 58
#define NUM_LEDS_PER_STRIP2 58
CRGB first_strip [0][NUM_LEDS_PER_STRIP1];
CRGB Second_strip [1][NUM_LEDS_PER_STRIP2];

//CRGB leds[NUM_LEDS];

uint8_t myColors[][3] = {{232, 100, 255},   // purple
  {200, 200, 20},   // yellow
  {30, 200, 200},   // blue
  {237, 159, 176},  // pink
  {255, 0, 0},      // red
  {108, 87, 229},    // Dark blue
  {162, 211, 172},   // Lt Green
};

#define FAVCOLORS sizeof(myColors) / 7

Adafruit_NeoPixel strip = Adafruit_NeoPixel (numberOfPixels, dataPin);
Adafruit_NeoPixel stripa = Adafruit_NeoPixel (numberOfPixels, dataPina);
//Adafruit_NeoPixel stripb = Adafruit_NeoPixel (numberOfPixels,dataPinb);


void setup()
{
  FastLED.addLeds<WS2812, DATA_PIN, RGB>(first_strip, NUM_LEDS);
  FastLED.addLeds<WS2812, DATA_PINa, RGB>(second_strip, NUM_LEDS);
  // FastLED.addLeds<WS2812, DATA_PINb, RGB>(leds, NUM_LEDS);

  //FastLED.addLeds<WS2811, PIN, GRB>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
  //FastLED.addLeds<WS2811, PINA, GRB>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
  //FastLED.addLeds<WS2811, PINB, GRB>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );

  strip.begin();
  stripa.begin();
  //stripb.begin();

  strip.show();
  stripa.show();
  //stripb.show();

  strip.clear();
  stripa.clear();
  //stripb.clear();
}

void NewKITT(byte red, byte green, byte blue, int EyeSize, int SpeedDelay, int ReturnDelay) {
  RightToLeft(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  LeftToRight(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  OutsideToCenter(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  CenterToOutside(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  LeftToRight(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  RightToLeft(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  OutsideToCenter(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  CenterToOutside(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
}

void CenterToOutside(byte red, byte green, byte blue, int EyeSize, int SpeedDelay, int ReturnDelay) {
  for (int i = ((NUM_LEDS_PER_STRIP1 - EyeSize) / 2); i >= 0; i--)
    for (int i = ((NUM_LEDS_PER_STRIP2 - EyeSize) / 2); i >= 0; i--) {
      setAll(0, 0, 0);

      setPixel(i, red / 10, green / 10, blue / 10);
      for (int j = 1; j <= EyeSize; j++) {
        setPixel(i + j, red, green, blue);
      }
      setPixel(i + EyeSize + 1, red / 10, green / 10, blue / 10);

      setPixel(NUM_LEDS - i, red / 10, green / 10, blue / 10);
      for (int j = 1; j <= EyeSize; j++) {
        setPixel(NUM_LEDS - i - j, red, green, blue);
      }
      setPixel(NUM_LEDS - i - EyeSize - 1, red / 10, green / 10, blue / 10);

      showStrip();
      delay(SpeedDelay);
    }
  delay(ReturnDelay);
}

void OutsideToCenter(byte red, byte green, byte blue, int EyeSize, int SpeedDelay, int ReturnDelay) {
  for (int i = 0; i <= ((NUM_LEDS - EyeSize) / 2); i++) {
    setAll(0, 0, 0);

    setPixel(i, red / 10, green / 10, blue / 10);
    for (int j = 1; j <= EyeSize; j++) {
      setPixel(i + j, red, green, blue);
    }
    setPixel(i + EyeSize + 1, red / 10, green / 10, blue / 10);

    setPixel(NUM_LEDS - i, red / 10, green / 10, blue / 10);
    for (int j = 1; j <= EyeSize; j++) {
      setPixel(NUM_LEDS - i - j, red, green, blue);
    }
    setPixel(NUM_LEDS - i - EyeSize - 1, red / 10, green / 10, blue / 10);

    showStrip();
    delay(SpeedDelay);
  }
  delay(ReturnDelay);
}

void LeftToRight(byte red, byte green, byte blue, int EyeSize, int SpeedDelay, int ReturnDelay) {
  for (int i = 0; i < NUM_LEDS - EyeSize - 2; i++) {
    setAll(0, 0, 0);
    setPixel(i, red / 10, green / 10, blue / 10);
    for (int j = 1; j <= EyeSize; j++) {
      setPixel(i + j, red, green, blue);
    }
    setPixel(i + EyeSize + 1, red / 10, green / 10, blue / 10);
    showStrip();
    delay(SpeedDelay);
  }
  delay(ReturnDelay);
}

void RightToLeft(byte red, byte green, byte blue, int EyeSize, int SpeedDelay, int ReturnDelay) {
  for (int i = NUM_LEDS - EyeSize - 2; i > 0; i--) {
    setAll(0, 0, 0);
    setPixel(i, red / 10, green / 10, blue / 10);
    for (int j = 1; j <= EyeSize; j++) {
      setPixel(i + j, red, green, blue);
    }
    setPixel(i + EyeSize + 1, red / 10, green / 10, blue / 10);
    showStrip();
    delay(SpeedDelay);
  }
  delay(ReturnDelay);
}






void loop()
{
  NewKITT(0xff, 0, 0, 8, 10, 50);
  single_led();
  flashRandom(5, 100);
  setLightsToColour(0, 0, 0);
  setLightsToColour(10, 0, 10);
  setLightsToColour(0, 0, 0);
  setLightsToColour(50, 0, 0);
  setLightsToColour(0, 0, 0);
  setLightsToColour(0, 50, 0);
  setLightsToColour(0, 0, 0);
  setLightsToColour(0, 0, 50);
  setLightsToColour(0, 0, 0);
  rainbowCycle(10);
  rainbow(10);
  setLightsToColour(0, 0, 0);
  rainbow(10);
  NewKITT(0xff, 0, 0, 8, 10, 50);
  setLightsToColour(0, 0, 0);
}


void setLightsToColour(int red, int green, int blue)
{
  strip.show();
  delay(500);
  stripa.show();
  delay(500);
  for (uint8_t i = 0; i < numberOfPixels; i++)
  {
    strip.setPixelColor (i, strip.Color(red, green, blue));

    stripa.setPixelColor (i, stripa.Color(red, green, blue));

    //stripb.setPixelColor (i, stripb.Color(red,green,blue));
  }
}

void rainbowCycle(uint8_t wait)
{
  uint16_t i, j;

  for (j = 0; j < 256 * 5; j++)
  { // 5 cycles of all colors on wheel
    for (i = 0; i < strip.numPixels(); i++)
      for (i = 0; i < stripa.numPixels(); i++)
      {
        strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));
        stripa.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));
      }
    strip.show();
    stripa.show();
    delay(wait);
  }
}


// Currently setup to slowly fade the blue LEDs down the strip
uint32_t Wheel(byte WheelPos)
{
  WheelPos = 255 - WheelPos;
  if (WheelPos < 85)
  {
    return strip.Color(0, 0, WheelPos * 3);
    return stripa.Color(0, 0, WheelPos * 3);
    //return stripb.Color(0, 0, WheelPos * 3);
  }
  if (WheelPos < 170)
  {
    WheelPos -= 85;
    return strip.Color(0, 255,  - WheelPos * 3);
    return stripa.Color(255, 0,  - WheelPos * 3);
    //return stripb.Color(0, 0, 255 - WheelPos * 3);
  }
  WheelPos -= 170;
  return strip.Color(0, 0, 0);
  return stripa.Color(0, 0, 0);
  //return stripb.Color(0, 0, 0);

}

void rainbow(uint8_t wait)
{
  uint16_t k, o;

  for (o = 0; o < 256; o++)
  {
    for (k = 0; k < strip.numPixels(); k++)
    {
      strip.setPixelColor(k, Wheel((k * 1 + o) & 255));
      stripa.setPixelColor(k, Wheel((k * 1 + o) & 255));
    }
    strip.show();
    stripa.show();
    delay(wait);
  }
}


// Input a value 0 to 255 to get a color value.
// The colours are a transition r - g - b - back to r.
uint32_t Wheels(byte WheelPoss)
{
  if (WheelPoss < 85)
  {
    return strip.Color(WheelPoss * 3, 255 - WheelPoss * 3, 0);
    return stripa.Color(WheelPoss * 3, 255 - WheelPoss * 3, 0);
  }
  else if (WheelPoss < 170)
  {
    WheelPoss -= 85;
    return strip.Color(255 - WheelPoss * 3, 0, WheelPoss * 3);
    return stripa.Color(255 - WheelPoss * 3, 0, WheelPoss * 3);
  }
  else
  {
    WheelPoss -= 170;
    return strip.Color(0, WheelPoss * 3, 255 - WheelPoss * 3);
    return stripa.Color(0, WheelPoss * 3, 255 - WheelPoss * 3);
  }
}

void flashRandom(int wait, uint8_t howmany) {

  for (uint16_t i = 0; i < howmany; i++) {
    // pick a random favorite color!
    int c = random(FAVCOLORS);
    int red = myColors[c][0];
    int green = myColors[c][1];
    int blue = myColors[c][2];

    // get a random pixel from the list
    int j = random(strip.numPixels());
    int k = random(stripa.numPixels());


    // now we will 'fade' it in 5 steps
    for (int x = 0; x < 5; x++) {
      int r = red * (x + 1); r /= 5;
      int g = green * (x + 1); g /= 5;
      int b = blue * (x + 1); b /= 5;

      strip.setPixelColor(j, strip.Color(r, g, b));
      stripa.setPixelColor(j, strip.Color(r, g, b));


      strip.show();
      stripa.show();

      delay(wait);
    }
    // & fade out in 5 steps
    for (int x = 5; x >= 0; x--) {
      int r = red * x; r /= 5;
      int g = green * x; g /= 5;
      int b = blue * x; b /= 5;


      strip.setPixelColor(j, strip.Color(r, g, b));
      stripa.setPixelColor(k, stripa.Color(r, g, b));


      strip.show();
      stripa.show();

      delay(wait);
    }
  }
}



void single_led()
{
  // Move a single white led
  for (int whiteLed = 0; whiteLed < NUM_LEDS; whiteLed = whiteLed + 1)
  {
    // Turn our current led on to white, then show the leds
    leds1[whiteLed] = CRGB::White;
    leds2[whiteLed] = CRGB::White;

    // Show the leds (only one of which is set to white, from above)
    FastLED.show();



    // Wait a little bit
    delay(100);

    // Turn our current led back to black for the next loop around
    leds1[whiteLed] = CRGB::Black;
    leds2[whiteLed] = CRGB::Black;
  }
}

void showStrip() {
#ifdef ADAFRUIT_NEOPIXEL_H
  // NeoPixel
  strip.show();
#endif
#ifndef ADAFRUIT_NEOPIXEL_H
  // FastLED
  FastLED.show();
#endif
}
void setPixel(int Pixel, byte red, byte green, byte blue) {
#ifdef ADAFRUIT_NEOPIXEL_H
  // NeoPixel
  strip.setPixelColor(Pixel, strip.Color(red, green, blue));
#endif
#ifndef ADAFRUIT_NEOPIXEL_H
  // FastLED
  leds[Pixel].r = red;
  leds[Pixel].g = green;
  leds[Pixel].b = blue;
#endif
}

void setAll(byte red, byte green, byte blue) {
  for (int i = 0; i < NUM_LEDS; i++ ) {
    setPixel(i, red, green, blue);
  }
  showStrip();
}
1 Like

You can't define array element by element. Try do it this way:

CRGB strips [2][NUM_LEDS_PER_STRIP1];

And then add strips to FastLED object:

FastLED.addLeds<WS2812, DATA_PIN, RGB>(strips[0], NUM_LEDS);
FastLED.addLeds<WS2812, DATA_PINa, RGB>(strips[1], NUM_LEDS);

Maybe there are more errors in the code, fix these first and try

Addition.
In general you shouldn't use NeoPixel and FastLED libraries in the same sketch. You should choose one of two.
Your code is a terrible mixture of methods from two libraries, it's easier to throw it out and write it again, rather than to fix

Tja ks man i will try it the problem is im quite new to this and the neopixel library is very easy thats where i started to play but then i fpunf the code the newkitt ine on one of the forums and it looks real good but tried to do in the neopixel way but im not that good and the fastled looks real complicated but i wil try and play with the fastleds stuff dono where one wil learn all the fastled stuff to understand it

Sorry, but I don't understand.
If English is not your native language please use google to translate...

Sorry bro ok so im use to adafruit neopixel library the fastled library looks way different so i have no idea where to learn all the stuff for fastled library im quite new to the whole arduino experience the thing that got me hooked was the neopixel leds

Ok.
So first get rid FastLED functions from your code and try to test it with Neopixel ones only.

there are dozens tutorials and videos in the net

Thats the thing i dont know how to write that newkitt code in my code to adafruit or any fastled to adafruit it feels like two different languadges and i cant seem to find any explanations on how to do it

Start from examples in the library

Ok so ur advice worked with no issue in the program but now still second strip doesnt activate the newkitt code

Please show your revised code

#include <Adafruit_NeoPixel.h>
#include <FastLED.h>

int  dataPin  = 6;
int  dataPina  = 7;
int  dataPinb  = 8;

#define DATA_PIN 6
#define DATA_PINa 7
#define DATA_PINb 8

//#define PIN 6
//#define PINA 7
//#define PINB 8

#define NUM_LEDS 58
#define numberOfPixels  58
#define maximumBrightness  10
#ifdef __AVR__
#include <avr/power.h>
#endif
#define NUM_STRIPS 2
#define NUM_LEDS_PER_STRIP1 58
#define NUM_LEDS_PER_STRIP2 58
CRGB strips [1][NUM_LEDS_PER_STRIP1];


//CRGB leds[NUM_LEDS];

uint8_t myColors[][3] = {{232, 100, 255},   // purple
  {200, 200, 20},   // yellow
  {30, 200, 200},   // blue
  {237, 159, 176},  // pink
  {255, 0, 0},      // red
  {108, 87, 229},    // Dark blue
  {162, 211, 172},   // Lt Green
};

#define FAVCOLORS sizeof(myColors) / 7

Adafruit_NeoPixel strip = Adafruit_NeoPixel (numberOfPixels, dataPin);
Adafruit_NeoPixel stripa = Adafruit_NeoPixel (numberOfPixels, dataPina);
//Adafruit_NeoPixel stripb = Adafruit_NeoPixel (numberOfPixels,dataPinb);


void setup()
{
  FastLED.addLeds<WS2812, DATA_PIN, RGB>(strips[0], NUM_LEDS);
  FastLED.addLeds<WS2812, DATA_PINa, RGB>(strips[1], NUM_LEDS);
  // FastLED.addLeds<WS2812, DATA_PINb, RGB>(leds, NUM_LEDS);

  //FastLED.addLeds<WS2811, PIN, GRB>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
  //FastLED.addLeds<WS2811, PINA, GRB>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
  //FastLED.addLeds<WS2811, PINB, GRB>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );

  strip.begin();
  stripa.begin();
  //stripb.begin();

  strip.show();
  stripa.show();
  //stripb.show();

  strip.clear();
  stripa.clear();
  //stripb.clear();
}

void NewKITT(byte red, byte green, byte blue, int EyeSize, int SpeedDelay, int ReturnDelay) {
  RightToLeft(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  LeftToRight(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  OutsideToCenter(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  CenterToOutside(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  LeftToRight(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  RightToLeft(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  OutsideToCenter(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  CenterToOutside(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
}

void CenterToOutside(byte red, byte green, byte blue, int EyeSize, int SpeedDelay, int ReturnDelay) {
  for (int i = ((NUM_LEDS_PER_STRIP1 - EyeSize) / 2); i >= 0; i--)
    for (int i = ((NUM_LEDS_PER_STRIP2 - EyeSize) / 2); i >= 0; i--) {
      setAll(0, 0, 0);

      setPixel(i, red / 10, green / 10, blue / 10);
      for (int j = 1; j <= EyeSize; j++) {
        setPixel(i + j, red, green, blue);
      }
      setPixel(i + EyeSize + 1, red / 10, green / 10, blue / 10);

      setPixel(NUM_LEDS - i, red / 10, green / 10, blue / 10);
      for (int j = 1; j <= EyeSize; j++) {
        setPixel(NUM_LEDS - i - j, red, green, blue);
      }
      setPixel(NUM_LEDS - i - EyeSize - 1, red / 10, green / 10, blue / 10);

      showStrip();
      delay(SpeedDelay);
    }
  delay(ReturnDelay);
}

void OutsideToCenter(byte red, byte green, byte blue, int EyeSize, int SpeedDelay, int ReturnDelay) {
  for (int i= 0; i<= ((NUM_LEDS - EyeSize) / 2); i++) {
    setAll(0, 0, 0);

    setPixel(i, red / 10, green / 10, blue / 10);
    for (int j = 1; j <= EyeSize; j++) {
      setPixel(i + j, red, green, blue);
    }
    setPixel(i + EyeSize + 1, red / 10, green / 10, blue / 10);

    setPixel(NUM_LEDS - i, red / 10, green / 10, blue / 10);
    for (int j = 1; j <= EyeSize; j++) {
      setPixel(NUM_LEDS - i - j, red, green, blue);
    }
    setPixel(NUM_LEDS - i - EyeSize - 1, red / 10, green / 10, blue / 10);

    showStrip();
    delay(SpeedDelay);
  }
  delay(ReturnDelay);
}

void LeftToRight(byte red, byte green, byte blue, int EyeSize, int SpeedDelay, int ReturnDelay) {
  for (int i = 0; i < NUM_LEDS - EyeSize - 2; i++) {
    setAll(0, 0, 0);
    setPixel(i, red / 10, green / 10, blue / 10);
    for (int j = 1; j <= EyeSize; j++) {
      setPixel(i + j, red, green, blue);
    }
    setPixel(i + EyeSize + 1, red / 10, green / 10, blue / 10);
    showStrip();
    delay(SpeedDelay);
  }
  delay(ReturnDelay);
}

void RightToLeft(byte red, byte green, byte blue, int EyeSize, int SpeedDelay, int ReturnDelay) {
  for (int i = NUM_LEDS - EyeSize - 2; i > 0; i--) {
    setAll(0, 0, 0);
    setPixel(i, red / 10, green / 10, blue / 10);
    for (int j = 1; j <= EyeSize; j++) {
      setPixel(i + j, red, green, blue);
    }
    setPixel(i + EyeSize + 1, red / 10, green / 10, blue / 10);
    showStrip();
    delay(SpeedDelay);
  }
  delay(ReturnDelay);
}






void loop()
{
  NewKITT(0xff, 0, 0, 8, 10, 50);
  single_led();
  flashRandom(5, 100);
  setLightsToColour(0, 0, 0);
  setLightsToColour(10, 0, 10);
  setLightsToColour(0, 0, 0);
  setLightsToColour(50, 0, 0);
  setLightsToColour(0, 0, 0);
  setLightsToColour(0, 50, 0);
  setLightsToColour(0, 0, 0);
  setLightsToColour(0, 0, 50);
  setLightsToColour(0, 0, 0);
  rainbowCycle(10);
  rainbow(10);
  setLightsToColour(0, 0, 0);
  rainbow(10);
  NewKITT(0xff, 0, 0, 8, 10, 50);
  setLightsToColour(0, 0, 0);
}


void setLightsToColour(int red, int green, int blue)
{
  strip.show();
  delay(500);
  stripa.show();
  delay(500);
  for (uint8_t i = 0; i < numberOfPixels; i++)
  {
    strip.setPixelColor (i, strip.Color(red, green, blue));

    stripa.setPixelColor (i, stripa.Color(red, green, blue));

    //stripb.setPixelColor (i, stripb.Color(red,green,blue));
  }
}

void rainbowCycle(uint8_t wait)
{
  uint16_t i, j;

  for (j = 0; j < 256 * 5; j++)
  { // 5 cycles of all colors on wheel
    for (i = 0; i < strip.numPixels(); i++)
      for (i = 0; i < stripa.numPixels(); i++)
      {
        strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));
        stripa.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));
      }
    strip.show();
    stripa.show();
    delay(wait);
  }
}


// Currently setup to slowly fade the blue LEDs down the strip
uint32_t Wheel(byte WheelPos)
{
  WheelPos = 255 - WheelPos;
  if (WheelPos < 85)
  {
    return strip.Color(0, 0, WheelPos * 3);
    return stripa.Color(0, 0, WheelPos * 3);
    //return stripb.Color(0, 0, WheelPos * 3);
  }
  if (WheelPos < 170)
  {
    WheelPos -= 85;
    return strip.Color(0, 255,  - WheelPos * 3);
    return stripa.Color(255, 0,  - WheelPos * 3);
    //return stripb.Color(0, 0, 255 - WheelPos * 3);
  }
  WheelPos -= 170;
  return strip.Color(0, 0, 0);
  return stripa.Color(0, 0, 0);
  //return stripb.Color(0, 0, 0);

}

void rainbow(uint8_t wait)
{
  uint16_t k, o;

  for (o = 0; o < 256; o++)
  {
    for (k = 0; k < strip.numPixels(); k++)
    {
      strip.setPixelColor(k, Wheel((k * 1 + o) & 255));
      stripa.setPixelColor(k, Wheel((k * 1 + o) & 255));
    }
    strip.show();
    stripa.show();
    delay(wait);
  }
}


// Input a value 0 to 255 to get a color value.
// The colours are a transition r - g - b - back to r.
uint32_t Wheels(byte WheelPoss)
{
  if (WheelPoss < 85)
  {
    return strip.Color(WheelPoss * 3, 255 - WheelPoss * 3, 0);
    return stripa.Color(WheelPoss * 3, 255 - WheelPoss * 3, 0);
  }
  else if (WheelPoss < 170)
  {
    WheelPoss -= 85;
    return strip.Color(255 - WheelPoss * 3, 0, WheelPoss * 3);
    return stripa.Color(255 - WheelPoss * 3, 0, WheelPoss * 3);
  }
  else
  {
    WheelPoss -= 170;
    return strip.Color(0, WheelPoss * 3, 255 - WheelPoss * 3);
    return stripa.Color(0, WheelPoss * 3, 255 - WheelPoss * 3);
  }
}

void flashRandom(int wait, uint8_t howmany) {

  for (uint16_t i = 0; i < howmany; i++) {
    // pick a random favorite color!
    int c = random(FAVCOLORS);
    int red = myColors[c][0];
    int green = myColors[c][1];
    int blue = myColors[c][2];

    // get a random pixel from the list
    int j = random(strip.numPixels());
    int k = random(stripa.numPixels());


    // now we will 'fade' it in 5 steps
    for (int x = 0; x < 5; x++) {
      int r = red * (x + 1); r /= 5;
      int g = green * (x + 1); g /= 5;
      int b = blue * (x + 1); b /= 5;

      strip.setPixelColor(j, strip.Color(r, g, b));
      stripa.setPixelColor(j, strip.Color(r, g, b));


      strip.show();
      stripa.show();

      delay(wait);
    }
    // & fade out in 5 steps
    for (int x = 5; x >= 0; x--) {
      int r = red * x; r /= 5;
      int g = green * x; g /= 5;
      int b = blue * x; b /= 5;


      strip.setPixelColor(j, strip.Color(r, g, b));
      stripa.setPixelColor(k, stripa.Color(r, g, b));


      strip.show();
      stripa.show();

      delay(wait);
    }
  }
}



void single_led()
{
  // Move a single white led
  for (int whiteLed = 0; whiteLed < NUM_LEDS; whiteLed = whiteLed + 1)
  {
    // Turn our current led on to white, then show the leds
    strips[0][whiteLed] = CRGB::White;
    strips[1][whiteLed] = CRGB::White;

    // Show the leds (only one of which is set to white, from above)
    FastLED.show();



    // Wait a little bit
    delay(100);

    // Turn our current led back to black for the next loop around
    strips[0][whiteLed] = CRGB::Black;
    strips[1][whiteLed] = CRGB::Black;
  }
}

void showStrip() {
#ifdef ADAFRUIT_NEOPIXEL_H
  // NeoPixel
  strip.show();
#endif
#ifndef ADAFRUIT_NEOPIXEL_H
  // FastLED
  FastLED.show();
#endif
}
void setPixel(int Pixel, byte red, byte green, byte blue) {
#ifdef ADAFRUIT_NEOPIXEL_H
  // NeoPixel
  strip.setPixelColor(Pixel, strip.Color(red, green, blue));
#endif
#ifndef ADAFRUIT_NEOPIXEL_H
  // FastLED
  leds[Pixel].r = red;
  leds[Pixel].g = green;
  leds[Pixel].b = blue;
#endif
}

void setAll(byte red, byte green, byte blue) {
  for (int i = 0; i < NUM_LEDS; i++ ) {
    setPixel(i, red, green, blue);
  }
  showStrip();
}

No, my advice was follows:

I don't see that you removed FastLEd functions from your code.

#include <Adafruit_NeoPixel.h>
//#include <FastLED.h>

int  dataPin  = 6;
int  dataPina  = 7;
int  dataPinb  = 8;

#define DATA_PIN 6
#define DATA_PINa 7
#define DATA_PINb 8

//#define PIN 6
//#define PINA 7
//#define PINB 8

#define NUM_LEDS 58
#define numberOfPixels  58
#define maximumBrightness  10
#ifdef __AVR__
#include <avr/power.h>
#endif
#define NUM_STRIPS 2
#define NUM_LEDS_PER_STRIP1 58
#define NUM_LEDS_PER_STRIP2 58
//CRGB strips [1][NUM_LEDS_PER_STRIP1];


//CRGB leds[NUM_LEDS];

  uint8_t myColors[][3] = {{232, 100, 255},   // purple
     {200, 200, 20},   // yellow
     {30, 200, 200},   // blue
     {237, 159, 176},  // pink
     {255, 0, 0},      // red
     {108, 87, 229},    // Dark blue
    {162, 211, 172},   // Lt Green
};

#define FAVCOLORS sizeof(myColors) / 7

Adafruit_NeoPixel strip = Adafruit_NeoPixel (numberOfPixels, dataPin);
Adafruit_NeoPixel stripa = Adafruit_NeoPixel (numberOfPixels, dataPina);
//Adafruit_NeoPixel stripb = Adafruit_NeoPixel (numberOfPixels,dataPinb);


void setup()
{
  //FastLED.addLeds<WS2812, DATA_PIN, RGB>(strips[0], NUM_LEDS);
  //FastLED.addLeds<WS2812, DATA_PINa, RGB>(strips[1], NUM_LEDS);
  // FastLED.addLeds<WS2812, DATA_PINb, RGB>(leds, NUM_LEDS);

  //FastLED.addLeds<WS2811, PIN, GRB>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
  //FastLED.addLeds<WS2811, PINA, GRB>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
  //FastLED.addLeds<WS2811, PINB, GRB>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );

  strip.begin();
  stripa.begin();
  //stripb.begin();

  strip.show();
  stripa.show();
  //stripb.show();

  strip.clear();
  stripa.clear();
  //stripb.clear();
}

void NewKITT(byte red, byte green, byte blue, int EyeSize, int SpeedDelay, int ReturnDelay) {
  RightToLeft(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  LeftToRight(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  OutsideToCenter(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  CenterToOutside(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  LeftToRight(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  RightToLeft(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  OutsideToCenter(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
  CenterToOutside(red, green, blue, EyeSize, SpeedDelay, ReturnDelay);
}

void CenterToOutside(byte red, byte green, byte blue, int EyeSize, int SpeedDelay, int ReturnDelay) {
  for (int i = ((NUM_LEDS_PER_STRIP1 - EyeSize) / 2); i >= 0; i--)
    for (int i = ((NUM_LEDS_PER_STRIP2 - EyeSize) / 2); i >= 0; i--) {
      setAll(0, 0, 0);

      setPixel(i, red / 10, green / 10, blue / 10);
      for (int j = 1; j <= EyeSize; j++) {
        setPixel(i + j, red, green, blue);
      }
      setPixel(i + EyeSize + 1, red / 10, green / 10, blue / 10);

      setPixel(NUM_LEDS - i, red / 10, green / 10, blue / 10);
      for (int j = 1; j <= EyeSize; j++) {
        setPixel(NUM_LEDS - i - j, red, green, blue);
      }
      setPixel(NUM_LEDS - i - EyeSize - 1, red / 10, green / 10, blue / 10);

      showStrip();
      delay(SpeedDelay);
    }
  delay(ReturnDelay);
}

void OutsideToCenter(byte red, byte green, byte blue, int EyeSize, int SpeedDelay, int ReturnDelay) {
  for (int i= 0; i<= ((NUM_LEDS - EyeSize) / 2); i++) {
    setAll(0, 0, 0);

    setPixel(i, red / 10, green / 10, blue / 10);
    for (int j = 1; j <= EyeSize; j++) {
      setPixel(i + j, red, green, blue);
    }
    setPixel(i + EyeSize + 1, red / 10, green / 10, blue / 10);

    setPixel(NUM_LEDS - i, red / 10, green / 10, blue / 10);
    for (int j = 1; j <= EyeSize; j++) {
      setPixel(NUM_LEDS - i - j, red, green, blue);
    }
    setPixel(NUM_LEDS - i - EyeSize - 1, red / 10, green / 10, blue / 10);

    showStrip();
    delay(SpeedDelay);
  }
  delay(ReturnDelay);
}

void LeftToRight(byte red, byte green, byte blue, int EyeSize, int SpeedDelay, int ReturnDelay) {
  for (int i = 0; i < NUM_LEDS - EyeSize - 2; i++) {
    setAll(0, 0, 0);
    setPixel(i, red / 10, green / 10, blue / 10);
    for (int j = 1; j <= EyeSize; j++) {
      setPixel(i + j, red, green, blue);
    }
    setPixel(i + EyeSize + 1, red / 10, green / 10, blue / 10);
    showStrip();
    delay(SpeedDelay);
  }
  delay(ReturnDelay);
}

void RightToLeft(byte red, byte green, byte blue, int EyeSize, int SpeedDelay, int ReturnDelay) {
  for (int i = NUM_LEDS - EyeSize - 2; i > 0; i--) {
    setAll(0, 0, 0);
    setPixel(i, red / 10, green / 10, blue / 10);
    for (int j = 1; j <= EyeSize; j++) {
      setPixel(i + j, red, green, blue);
    }
    setPixel(i + EyeSize + 1, red / 10, green / 10, blue / 10);
    showStrip();
    delay(SpeedDelay);
  }
  delay(ReturnDelay);
}






void loop()
{
  NewKITT(0xff, 0, 0, 8, 10, 50);
  single_led();
  flashRandom(5, 100);
  setLightsToColour(0, 0, 0);
  setLightsToColour(10, 0, 10);
  setLightsToColour(0, 0, 0);
  setLightsToColour(50, 0, 0);
  setLightsToColour(0, 0, 0);
  setLightsToColour(0, 50, 0);
  setLightsToColour(0, 0, 0);
  setLightsToColour(0, 0, 50);
  setLightsToColour(0, 0, 0);
  rainbowCycle(10);
  rainbow(10);
  setLightsToColour(0, 0, 0);
  rainbow(10);
  NewKITT(0xff, 0, 0, 8, 10, 50);
  setLightsToColour(0, 0, 0);
}


void setLightsToColour(int red, int green, int blue)
{
  strip.show();
  delay(500);
  stripa.show();
  delay(500);
  for (uint8_t i = 0; i < numberOfPixels; i++)
  {
    strip.setPixelColor (i, strip.Color(red, green, blue));

    stripa.setPixelColor (i, stripa.Color(red, green, blue));

    //stripb.setPixelColor (i, stripb.Color(red,green,blue));
  }
}

void rainbowCycle(uint8_t wait)
{
  uint16_t i, j;

  for (j = 0; j < 256 * 5; j++)
  { // 5 cycles of all colors on wheel
    for (i = 0; i < strip.numPixels(); i++)
      for (i = 0; i < stripa.numPixels(); i++)
      {
        strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));
        stripa.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));
      }
    strip.show();
    stripa.show();
    delay(wait);
  }
}


// Currently setup to slowly fade the blue LEDs down the strip
uint32_t Wheel(byte WheelPos)
{
  WheelPos = 255 - WheelPos;
  if (WheelPos < 85)
  {
    return strip.Color(0, 0, WheelPos * 3);
    return stripa.Color(0, 0, WheelPos * 3);
    //return stripb.Color(0, 0, WheelPos * 3);
  }
  if (WheelPos < 170)
  {
    WheelPos -= 85;
    return strip.Color(0, 255,  - WheelPos * 3);
    return stripa.Color(255, 0,  - WheelPos * 3);
    //return stripb.Color(0, 0, 255 - WheelPos * 3);
  }
  WheelPos -= 170;
  return strip.Color(0, 0, 0);
  return stripa.Color(0, 0, 0);
  //return stripb.Color(0, 0, 0);

}

void rainbow(uint8_t wait)
{
  uint16_t k, o;

  for (o = 0; o < 256; o++)
  {
    for (k = 0; k < strip.numPixels(); k++)
    {
      strip.setPixelColor(k, Wheel((k * 1 + o) & 255));
      stripa.setPixelColor(k, Wheel((k * 1 + o) & 255));
    }
    strip.show();
    stripa.show();
    delay(wait);
  }
}


// Input a value 0 to 255 to get a color value.
// The colours are a transition r - g - b - back to r.
uint32_t Wheels(byte WheelPoss)
{
  if (WheelPoss < 85)
  {
    return strip.Color(WheelPoss * 3, 255 - WheelPoss * 3, 0);
    return stripa.Color(WheelPoss * 3, 255 - WheelPoss * 3, 0);
  }
  else if (WheelPoss < 170)
  {
    WheelPoss -= 85;
    return strip.Color(255 - WheelPoss * 3, 0, WheelPoss * 3);
    return stripa.Color(255 - WheelPoss * 3, 0, WheelPoss * 3);
  }
  else
  {
    WheelPoss -= 170;
    return strip.Color(0, WheelPoss * 3, 255 - WheelPoss * 3);
    return stripa.Color(0, WheelPoss * 3, 255 - WheelPoss * 3);
  }
}

void flashRandom(int wait, uint8_t howmany) {

  for (uint16_t i = 0; i < howmany; i++) {
    // pick a random favorite color!
    int c = random(FAVCOLORS);
    int red = myColors[c][0];
    int green = myColors[c][1];
    int blue = myColors[c][2];

    // get a random pixel from the list
    int j = random(strip.numPixels());
    int k = random(stripa.numPixels());


    // now we will 'fade' it in 5 steps
    for (int x = 0; x < 5; x++) {
      int r = red * (x + 1); r /= 5;
      int g = green * (x + 1); g /= 5;
      int b = blue * (x + 1); b /= 5;

      strip.setPixelColor(j, strip.Color(r, g, b));
      stripa.setPixelColor(j, strip.Color(r, g, b));


      strip.show();
      stripa.show();

      delay(wait);
    }
    // & fade out in 5 steps
    for (int x = 5; x >= 0; x--) {
      int r = red * x; r /= 5;
      int g = green * x; g /= 5;
      int b = blue * x; b /= 5;


      strip.setPixelColor(j, strip.Color(r, g, b));
      stripa.setPixelColor(k, stripa.Color(r, g, b));


      strip.show();
      stripa.show();

      delay(wait);
    }
  }
}



void single_led()
{
  // Move a single white led
  for (int whiteLed = 0; whiteLed < NUM_LEDS; whiteLed = whiteLed + 1)
  {
    // Turn our current led on to white, then show the leds
    strips[0][whiteLed] = CRGB::White;
    strips[1][whiteLed] = CRGB::White;

    // Show the leds (only one of which is set to white, from above)
    FastLED.show();



    // Wait a little bit
    delay(100);

    // Turn our current led back to black for the next loop around
    strips[0][whiteLed] = CRGB::Black;
    strips[1][whiteLed] = CRGB::Black;
  }
}

void showStrip() {
#ifdef ADAFRUIT_NEOPIXEL_H
  // NeoPixel
  strip.show();
#endif
#ifndef ADAFRUIT_NEOPIXEL_H
  // FastLED
  FastLED.show();
#endif
}
void setPixel(int Pixel, byte red, byte green, byte blue) {
#ifdef ADAFRUIT_NEOPIXEL_H
  // NeoPixel
  strip.setPixelColor(Pixel, strip.Color(red, green, blue));
#endif
#ifndef ADAFRUIT_NEOPIXEL_H
  // FastLED
  leds[Pixel].r = red;
  leds[Pixel].g = green;
  leds[Pixel].b = blue;
#endif
}

void setAll(byte red, byte green, byte blue) {
  for (int i = 0; i < NUM_LEDS; i++ ) {
    setPixel(i, red, green, blue);
  }
  showStrip();
}