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

◆ setDither()

void CFastLED::setDither ( uint8_t ditherMode = BINARY_DITHER)

Set the dithering mode.

Sets the dithering mode for all added led strips, overriding whatever previous dithering option those controllers may have had.

Parameters
ditherModewhat type of dithering to use, either BINARY_DITHER or DISABLE_DITHER

Definition at line 281 of file FastLED.cpp.

281 {
282 CLEDController *pCur = CLEDController::head();
283 while(pCur) {
284 pCur->setDither(ditherMode);
285 pCur = pCur->next();
286 }
287}
CLEDController * next()
Get the next controller in the linked list after this one.
CLEDController & setDither(uint8_t ditherMode=BINARY_DITHER)
Set the dithering mode for this controller to use.
static CLEDController * head()
Get the first LED controller in the linked list of controllers.

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

+ Here is the call graph for this function: