I am looking at using the setTemperature to shift the color of the array

I am looking at using the setTemperature to shift the color of the array based on an input. Looking at the source code, all the predefined temperatures are in 0xFFFFFF format, can I use R, G, B format or am I going to have to convert to the 0xFFFFFF format for it to work?

concept psudo-code

float sensorInput;
mappedSensorValue=map(sensorInput,sensorMin,sensorMax,0,255);
colorShift=FastLed.heatcolor(mappedSensorValue);
FastLed.setTemperature(colorShift):

That’s a pretty fun idea right there, in that pseudo code! You’ll have to post video once it’s running!

And setTemperature takes a “CBRG”, meaning that you can specify a hex integer (0xFFFFFF) or you can do it like this:
CRGB colorShift;
colorShift = HeatColor( temp );
FastLED.setTemperature( colorShift);

That work for you?

If I am understanding your code correctly, yes it would be great.

If I am understanding how your code is working, yes it will be great.

Sorry about the double reply, g+ app on iPad messed up.