MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / handlerSetLeds

Method handlerSetLeds

sources/effects/EffectEngine.cpp:154–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void EffectEngine::handlerSetLeds(int priority, const std::vector<ColorRgb>& ledColors, int timeout_ms, bool clearEffect)
155{
156 int ledNum = _hyperInstance->getLedCount();
157 if (ledNum == static_cast<int>(ledColors.size()))
158 _hyperInstance->setInputLeds(priority, ledColors, timeout_ms, false);
159 else for (auto&& effect : _activeEffects)
160 {
161 effect->setLedCount(ledNum);
162 }
163}
164
165void EffectEngine::createSmoothingConfigs()
166{

Callers

nothing calls this directly

Calls 4

setInputLedsMethod · 0.80
getLedCountMethod · 0.45
sizeMethod · 0.45
setLedCountMethod · 0.45

Tested by

no test coverage detected