FastLED 3.9.15
Loading...
Searching...
No Matches

◆ setTemperature()

void CFastLED::setTemperature ( const struct CRGB & temp)

Set a global color temperature.

Sets the color temperature for all added led strips, overriding whatever previous color temperature those controllers may have had.

Parameters
tempA CRGB structure describing the color temperature

Definition at line 259 of file FastLED.cpp.

259 {
260 CLEDController *pCur = CLEDController::head();
261 while(pCur) {
262 pCur->setTemperature(temp);
263 pCur = pCur->next();
264 }
265}
CLEDController * next()
Get the next controller in the linked list after this one.
static CLEDController * head()
Get the first LED controller in the linked list of controllers.
CLEDController & setTemperature(CRGB temperature)
Set the color temperature, aka white point, for this controller.

References CLEDController::head(), CLEDController::next(), and CLEDController::setTemperature().

+ Here is the call graph for this function: