I’m trying to convert this project (http://www.walltech.cc/neopixel-fire-effect/) from the NeoPixel library to the FastLED library… When doing so, the output on the LEDs seems to be almost all white and yellow, with very little orange and red, unlike the original. Can somone tell me what I’ve done wrong?
Hi Mark Becknauld, You probably only need to slightly modify your initial values for red, green and blue. Try this…
int r = 255;
int g = 50;
int b = 20;
Do not be afraid to play with other values. You can also try playing with the random range of the flicker variable.
I think the color in the video might have something to do with the material it’s being projected on. If you look closely at the bottom part of the light in the video, it IS mostly white and yellow that’s being generated. The red and orange are higher on the wall.
not the most ideal solution (but the best my limited skills can come up wih)
but you could try multipliers on this line to vary the amount of blue and green showing on the strip
leds[x] = CRGB(r1,g1,b1);
becomes
leds[x] = CRGB(r1,g1*.6,b1*.4);
notice the period in front of the multiplers, they act like your dividing the number just use a smaller number to get less of that color.