Question with ledstrip

Hello, i’m beginner in using arduino.I’m currently learning fastled code,my LEDstrip works fine by typing WS2811 in my code but WS2812 is not working…

#define FASTLED_INTERNAL
#include <FastLED.h>

// How many LEDS in the LED strip
#define NUM_LEDS_PER_STRIP 64

#define DATA_PIN 5  // Data pin for the first LED strip
#define DATA_PIN 6   // Data pin for the second LED strip
#define NUM_STRIPS 2  // How many LED strips in the circuit

CRGB leds[NUM_STRIPS][NUM_LEDS_PER_STRIP];

void setup() {
  // 
  LEDS.addLeds<WS2812B, 5, RGB>(leds[0], NUM_LEDS_PER_STRIP);
  LEDS.addLeds<WS2812B, 6, RGB>(leds[1], NUM_LEDS_PER_STRIP);
  // set the brightness of the LED in the strips
  LEDS.setBrightness(30);   
}

void fadeall() {
    for (int i = 0; i < NUM_LEDS_PER_STRIP; i++) {
      // scale the brightness of LED in percentage
      leds[0][i].nscale8(250);
      leds[1][i].nscale8(250);
    }
 
}

void loop() {
  static uint8_t hue = 0;

    for (int i = 0; i < NUM_LEDS_PER_STRIP; i++) {
      leds[0][i] = CHSV(hue++, 255, 255);
      leds[1][i] = CHSV(hue++, 255, 255);
      FastLED.show();
      // call the function fadeall
      fadeall();
      delay(10);
    }
    for (int i = 0; i < NUM_LEDS_PER_STRIP; i++) {
      // Set the i'th led to red
      leds[0][i] = CHSV(hue++, 255, 255);
      leds[1][i] = CHSV(hue++, 255, 255);
      // Show the leds 
      FastLED.show();
      // call the function fadeall
      fadeall();
      delay(10);
    }
}

Can anyone explain to me?.. Thank you very much

Hello,
This may help.

Tom... :slight_smile:

Hi, Have you tried just the simple Example code in the IDE?

Tom.... :)

Yea i tried the example code in the IDE but it can’t works with WS2812 code :-\ I tried the solutions that i found on internet but i can’t really solve it. So sorry bout that I’m beginner level…