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

Function clear

src/fl/gfx/clear.h:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11// Memory safe clear function for CRGB arrays.
12template <int N> inline void clear(CRGB (&arr)[N]) {
13 for (int i = 0; i < N; ++i) {
14 arr[i] = CRGB::Black;
15 }
16}
17
18inline void clear(Leds &leds) { leds.fill(CRGB::Black); }
19

Callers 10

setMethod · 0.50
resetMethod · 0.50
RmtRxChannelImplClass · 0.50
trace.hppFile · 0.50
loopFunction · 0.50
clearLedsFunction · 0.50
loopFunction · 0.50
loopFunction · 0.50
loopFunction · 0.50
loopFunction · 0.50

Calls 2

fillMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected