MCPcopy Create free account
hub / github.com/FastLED/FastLED / push

Method push

src/fl/fx/2d/wave.cpp.hpp:33–39  ·  view source on GitHub ↗

@brief Add an LED to the current batch @param index LED array index to update @param alpha Wave amplitude (0-255) for gradient lookup If the batch is full, automatically flushes before adding.

Source from the content-addressed store, hash-verified

31 ///
32 /// If the batch is full, automatically flushes before adding.
33 void push(fl::u32 index, u8 alpha) {
34 if (isFull()) {
35 flush();
36 }
37 mIndices.push_back(index);
38 mAlphas.push_back(alpha);
39 }
40
41 /// @brief Check if batch is full
42 /// @return True if batch has reached maximum size

Callers 1

mapWaveToLEDsMethod · 0.45

Calls 2

flushFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected