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

248 {
249 CLEDController *pCur = CLEDController::head();
250 while(pCur) {
251 pCur->setTemperature(temp);
252 pCur = pCur->next();
253 }
254}
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: