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

◆ beginShowLeds()

virtual void * CLEDController::beginShowLeds ( int size)
inlinevirtual

Reimplemented in RGBWEmulatedController< CONTROLLER, RGB_ORDER >, WS2816Controller< DATA_PIN, RGB_ORDER >, and WS2816Controller< DATA_PIN, RGB_ORDER >.

Definition at line 222 of file cled_controller.h.

222 {
224 // By default, emit an integer. This integer will, by default, be passed back.
225 // If you override beginShowLeds() then
226 // you should also override endShowLeds() to match the return state.
227 //
228 // For async led controllers this should be used as a sync point to block
229 // the caller until the leds from the last draw frame have completed drawing.
230 // for each controller:
231 // beginShowLeds();
232 // for each controller:
233 // showLeds();
234 // for each controller:
235 // endShowLeds();
236 uintptr_t d = getDither();
237 void* out = fl::int_to_ptr<void>(d);
238 return out;
239 }
virtual int size()
How many LEDs does this controller manage?
fl::u8 getDither()
Get the dithering option currently set for this controller.
T * int_to_ptr(uptr value) noexcept
Definition bit_cast.h:70
#define FASTLED_UNUSED(x)
Definition unused.h:4

References FASTLED_UNUSED, getDither(), fl::int_to_ptr(), and size().

Referenced by showLeds().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: