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

◆ RawCommitDraw()

void LedRopeTCL::RawCommitDraw ( )
virtual

Implements LedRopeInterface.

Definition at line 100 of file LedRopeTCL.cpp.

100 {
101 FASTLED_WARN("\n\n############## COMMIT DRAW ################\n\n");
102 if (!controller_added_) {
103 controller_added_ = true;
104 CRGB* leds = led_buffer_.data();
105 size_t n_leds = led_buffer_.size();
106 FastLED.addLeds<APA102, PIN_DATA, PIN_CLOCK>(leds, n_leds).setScreenMap(mScreenMap);
107 }
108 FASTLED_WARN("FastLED.show");
109 FastLED.show();
110}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
@ APA102
APA102 LED chipset.
Definition FastLED.h:118
#define PIN_CLOCK
#define PIN_DATA
void show(uint8_t scale)
Update all our controllers with the current led colors, using the passed in brightness.
Definition FastLED.cpp:113
static CLEDController & addLeds(CLEDController *pLed, struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
Definition FastLED.cpp:92
fl::ScreenMap mScreenMap
Definition LedRopeTCL.h:78
fl::HeapVector< CRGB > led_buffer_
Definition LedRopeTCL.h:77
bool controller_added_
Definition LedRopeTCL.h:76
#define FASTLED_WARN
Definition warn.h:7

References APA102, controller_added_, FastLED, FASTLED_WARN, led_buffer_, leds, mScreenMap, PIN_CLOCK, and PIN_DATA.

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

+ Here is the caller graph for this function: