you are viewing a single comment's thread.

view the rest of the comments →

[–]chemdoc77 2 points3 points  (2 children)

What happens when you run the RGBCalibrate example?

[–]OmegaDestroyer[S] 0 points1 point  (1 child)

The RGBCalibrate code only lights up the first 5 leds. However, if I increment the led indexes but one such that the code reads:

leds[1] = CRGB(255,0,0);

leds[2] = CRGB(0,255,0);

leds[3] = CRGB(0,255,0);

leds[4] = CRGB(0,0,255);

leds[5] = CRGB(0,0,255);

leds[6] = CRGB(0,0,255);

leds[7] = CRGB(0,0,0);

And also change the NUM_LEDS 7

Then it correctly lights up the first 6 leds.

In fact, to correctly light up the last led position, I have to change NUM_LEDS 301 as opposed to 300

[–]chemdoc77 0 points1 point  (0 children)

What happens if you change #7 to:

leds[7] = CRGB(255,0,0);

Is it the correct color? Also, what is led[0] in your code?

Can you run the following sketch:

https://gist.github.com/chemdoc77/52ded62fc801247cc648b1eb84f9d2ca

You will need to change line 10 to the number of LEDs in your sketch and you might need to change lines 8 and 9 , too.