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 if (!controller_added_) {
102 controller_added_ = true;
103 CRGB* leds = led_buffer_.data();
104 size_t n_leds = led_buffer_.size();
105 FastLED.addLeds<APA102, PIN_DATA, PIN_CLOCK>(leds, n_leds).setScreenMap(mScreenMap);
106 }
107 FastLED.show();
108}
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:101
#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:107
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

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

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

+ Here is the caller graph for this function: