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 281 of file FastLED.cpp.

281 {
282 CLEDController *pCur = CLEDController::head();
283 while(pCur) {
284 pCur->setTemperature(temp);
285 pCur = pCur->next();
286 }
287}
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: