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

264 {
265 CLEDController *pCur = CLEDController::head();
266 while(pCur) {
267 pCur->setDither(ditherMode);
268 pCur = pCur->next();
269 }
270}
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: