FastLED 3.10.6
Loading...
Searching...
No Matches

◆ RECOMMENDED_VIRTUAL_BITS

#define RECOMMENDED_VIRTUAL_BITS
Value:

Set "virtual bits" of dithering to the highest level that is not likely to cause excessive flickering at low brightness levels + low update rates.

These pre-set values are a little ambitious, since a 400Hz update rate for WS2811-family LEDs is only possible with 85 pixels or fewer. The division is done at compile time, so there's no runtime cost, but the values are still hard-coded.

Definition at line 96 of file binary_dither.h.

96#define RECOMMENDED_VIRTUAL_BITS ((UPDATES_PER_FULL_DITHER_CYCLE>1) + \
97 (UPDATES_PER_FULL_DITHER_CYCLE>2) + \
98 (UPDATES_PER_FULL_DITHER_CYCLE>4) + \
99 (UPDATES_PER_FULL_DITHER_CYCLE>8) + \
100 (UPDATES_PER_FULL_DITHER_CYCLE>16) + \
101 (UPDATES_PER_FULL_DITHER_CYCLE>32) + \
102 (UPDATES_PER_FULL_DITHER_CYCLE>64) + \
103 (UPDATES_PER_FULL_DITHER_CYCLE>128) )