FastLED 3.10.10
Loading...
Searching...
No Matches

◆ RawCommitDraw()

void LedRopeTCL::RawCommitDraw ( )
virtual

Implements LedRopeInterface.

Definition at line 117 of file LedRopeTCL.cpp.

117 {
118 FL_WARN("\n\n############## COMMIT DRAW ################\n\n");
119 if (!mControllerAdded) {
120 mControllerAdded = true;
121 fl::CRGB* leds = mLedBuffer.data();
122 size_t n_leds = mLedBuffer.size();
123 FastLED.addLeds<APA102, PIN_DATA, PIN_CLOCK>(leds, n_leds).setScreenMap(mScreenMap);
124 }
125 FL_WARN("FastLED.show");
126 FastLED.show();
127}
CRGB leds[1]
#define PIN_DATA
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
@ APA102
APA102 LED chipset.
Definition FastLED.h:301
void show(fl::u8 scale) FL_NO_EXCEPT
Update all our controllers with the current led colors, using the passed in brightness.
::CLEDController & addLeds(::CLEDController *pLed, CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0) FL_NO_EXCEPT
Add a CLEDController instance to the world.
fl::ScreenMap mScreenMap
Definition LedRopeTCL.h:77
fl::vector< fl::CRGB > mLedBuffer
Definition LedRopeTCL.h:76
bool mControllerAdded
Definition LedRopeTCL.h:75
#define PIN_CLOCK
Definition curr.h:51
#define FL_WARN(...)
Definition log.h:437
fl::CRGB CRGB
Definition video.h:18

References APA102, FastLED, FL_WARN, leds, mControllerAdded, mLedBuffer, mScreenMap, PIN_CLOCK, and PIN_DATA.

Referenced by Draw(), DrawRepeat(), and DrawSequentialRepeat().

+ Here is the caller graph for this function: