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

◆ setCorrection()

void CFastLED::setCorrection ( const struct CRGB & correction)

Set a global color correction.

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

Parameters
correctionA CRGB structure describin the color correction.

Definition at line 267 of file FastLED.cpp.

267 {
268 CLEDController *pCur = CLEDController::head();
269 while(pCur) {
270 pCur->setCorrection(correction);
271 pCur = pCur->next();
272 }
273}
CLEDController * next()
Get the next controller in the linked list after this one.
CLEDController & setCorrection(CRGB correction)
The color corrction to use for this controller, expressed as a CRGB object.
static CLEDController * head()
Get the first LED controller in the linked list of controllers.

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

+ Here is the call graph for this function: