SK6812 (WS2812B) color issues.

I expected this code to cause all LEDs to be red. Why is 0 red, 1 green, 2 blue, etc?

Do not post code as a screen dump it means we can not load it in and try it for ourselves.

Please read this:-
How to use this forum it will tell you how to post code here.

Also what Arduino is that?

Its a Mega 2560

#include “FastLED.h”

int a;
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// RGB Calibration code
//
// Use this sketch to determine what the RGB ordering for your chipset should be. Steps for setting up to use:

// * Uncomment the line in setup that corresponds to the LED chipset that you are using. (Note that they
// all explicitly specify the RGB order as RGB)
// * Define DATA_PIN to the pin that data is connected to.
// * (Optional) if using software SPI for chipsets that are SPI based, define CLOCK_PIN to the clock pin
// * Compile/upload/run the sketch

// You should see six leds on. If the RGB ordering is correct, you should see 1 red led, 2 green
// leds, and 3 blue leds. If you see different colors, the count of each color tells you what the
// position for that color in the rgb orering should be. So, for example, if you see 1 Blue, and 2
// Red, and 3 Green leds then the rgb ordering should be BRG (Blue, Red, Green).

// You can then test this ordering by setting the RGB ordering in the addLeds line below to the new ordering
// and it should come out correctly, 1 red, 2 green, and 3 blue.
//
//////////////////////////////////////////////////

#define NUM_LEDS 6

// Data pin that led data will be written out over
#define DATA_PIN 6
// Clock pin only needed for SPI based chipsets when not using hardware SPI
//#define CLOCK_PIN 8

CRGB leds[NUM_LEDS];

void setup() {
// sanity check delay - allows reprogramming if accidently blowing power w/leds
delay(2000);

// Uncomment one of the following lines for your leds arrangement.
// FastLED.addLeds<TM1803, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<TM1804, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<TM1809, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<WS2812, DATA_PIN, RGB>(leds, NUM_LEDS);
FastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.setBrightness(CRGB(255,255,255));
// FastLED.addLeds<GW6205, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<GW6205_400, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<UCS1903, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<UCS1903B, DATA_PIN, RGB>(leds, NUM_LEDS);

// FastLED.addLeds<WS2801, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<SM16716, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<LPD8806, 9, 10, RGB>(leds, NUM_LEDS);

// FastLED.addLeds<WS2801, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<SM16716, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<LPD8806, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
FastLED.setBrightness( 10 );
}

void loop() {
leds[0] = CRGB(255,0,0);
leds[1] = CRGB(255,0,0);
leds[2] = CRGB(255,0,0);
leds[3] = CRGB(255,0,0);
leds[4] = CRGB(255,0,0);
leds[5] = CRGB(255,0,0);
FastLED.show();
delay(10);
FastLED.setBrightness( a );
a++;
if (a == 25) {
a = 0;

}

}

I asked you to:-

Grumpy_Mike:
Please read this:-
How to use this forum it will tell you how to post code here.

Why did you not?
It is a bit disrespectful.

Figured it out without you. your rules are condescending and too long to read FYI. You might have time to fart around with such non-sense, but most don't. Thanks for nothing.

Thanks for nothing.

Thanks for not putting any effort into your question. I bet you are the sort of person who goes to the Doctor complaining of a pain, and when asked where the pain is you say "I can't be bothered telling you just guess.

So if you can't put in any effort why should anybody else? However as you are unsatisfied at the response you got here you are permitted to claim all the money back that we charge you for using this forum.

Now go away and grow up.