Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.
12
template <int N> inline void clear(CRGB (&arr)[N]) {
13
for (int i = 0; i < N; ++i) {
14
arr[i] = CRGB::Black;
15
}
16
}
17
18
inline void clear(Leds &leds) { leds.fill(CRGB::Black); }
19
Callers
10
set
Method · 0.50
reset
Method · 0.50
RmtRxChannelImpl
Class · 0.50
trace.hpp
File · 0.50
loop
Function · 0.50
clearLeds
Function · 0.50
loop
Function · 0.50
loop
Function · 0.50
loop
Function · 0.50
loop
Function · 0.50
Calls
2
fill
Method · 0.45
clear
Method · 0.45
Tested by
no test coverage detected