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

◆ setTemperature()

void CFastLED::setTemperature ( const 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 391 of file FastLED.cpp.hpp.

391 {
393 while(pCur) {
394 pCur->setTemperature(temp);
395 pCur = pCur->next();
396 }
397}
CLEDController * next() FL_NOEXCEPT
Get the next controller in the linked list after this one.
CLEDController & setTemperature(CRGB temperature) FL_NOEXCEPT
Set the color temperature, aka white point, for this controller.
static CLEDController * head() FL_NOEXCEPT
Get the first LED controller in the linked list of controllers.
fl::CLEDController CLEDController

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

+ Here is the call graph for this function: