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

◆ RawCommitDraw()

void LedRopeTCL::RawCommitDraw ( )
virtual

Implements LedRopeInterface.

Definition at line 111 of file LedRopeTCL.cpp.

111 {
112 FL_WARN("\n\n############## COMMIT DRAW ################\n\n");
113 if (!mControllerAdded) {
114 mControllerAdded = true;
115 fl::CRGB* leds = mLedBuffer.data();
116 size_t n_leds = mLedBuffer.size();
117 FastLED.addLeds<APA102, PIN_DATA, PIN_CLOCK>(leds, n_leds).setScreenMap(mScreenMap);
118 }
119 FL_WARN("FastLED.show");
120 FastLED.show();
121}
#define PIN_DATA
fl::CRGB leds[NUM_LEDS]
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
@ APA102
APA102 LED chipset.
Definition FastLED.h:262
void show(fl::u8 scale)
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)
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(X)
Definition log.h:276
fl::CRGB CRGB
Definition video.h:15

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: