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

Method add

src/FastLED.cpp.hpp:135–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void CFastLED::add(fl::ChannelPtr channel) {
136 if (!channel) {
137 return;
138 }
139 auto& chnls = channels();
140 // Protect against double-add
141 if (chnls.has(channel)) {
142 return;
143 }
144 chnls.push_back(channel);
145 // Add channel to the CLEDController linked list
146 // Channel uses DeferRegister mode, so explicit addToDrawList() call is required
147 // Note: addToDrawList() now fires onChannelAdded event
148 channel->addToDrawList();
149}
150
151void CFastLED::remove(fl::ChannelPtr channel) {
152 if (!channel) {

Callers 15

remove_duplicatesFunction · 0.45
fix_iwyu_violationsFunction · 0.45
fetch_project_itemsFunction · 0.45
run_monitorFunction · 0.45
remove_duplicatesFunction · 0.45
find_files_using_macroFunction · 0.45
print_summaryFunction · 0.45
_clean_flagsFunction · 0.45
run_clang_queryFunction · 0.45
_run_clang_queryFunction · 0.45

Calls 9

enableAllDriversFunction · 0.85
createFunction · 0.85
addToDrawListMethod · 0.80
addFunction · 0.50
hasMethod · 0.45
push_backMethod · 0.45
getDriverCountMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45

Tested by 9

filter_lineFunction · 0.36
test_callbackFunction · 0.36
run_meson_testFunction · 0.36
_parse_includesFunction · 0.36
_collect_included_filesFunction · 0.36
extract_error_snippetFunction · 0.36