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

◆ beginShowLeds()

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

Reimplemented in RGBWEmulatedController< CONTROLLER, RGB_ORDER >.

Definition at line 426 of file cled_controller.h.

426 {
428 // By default, emit an integer. This integer will, by default, be passed back.
429 // If you override beginShowLeds() then
430 // you should also override endShowLeds() to match the return state.
431 //
432 // For async led controllers this should be used as a sync point to block
433 // the caller until the leds from the last draw frame have completed drawing.
434 // for each controller:
435 // beginShowLeds();
436 // for each controller:
437 // showLeds();
438 // for each controller:
439 // endShowLeds();
440 uintptr_t d = getDither();
441 void* out = fl::int_to_ptr<void>(d);
442 return out;
443 }
virtual int size() const FL_NO_EXCEPT
How many LEDs does this controller manage?
fl::u8 getDither() const FL_NO_EXCEPT
Get the dithering option currently set for this controller.
#define FASTLED_UNUSED(x)
T * int_to_ptr(uptr value) FL_NO_EXCEPT
Definition bit_cast.h:76
fl::uptr uintptr_t
Definition stdint.h:223

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

Referenced by CFastLED::show(), CFastLED::showColor(), and showLeds().

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