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

Function maxLaneLeds

examples/AutoResearch/AutoResearchRemote.cpp:120–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120uint32_t maxLaneLeds(const fl::vector<fl::ChannelConfig>& tx_configs) {
121 uint32_t max_leds = 0;
122 for (fl::size i = 0; i < tx_configs.size(); i++) {
123 const uint32_t count =
124 static_cast<uint32_t>(tx_configs[i].mLeds.size());
125 if (count > max_leds) {
126 max_leds = count;
127 }
128 }
129 return max_leds;
130}
131
132class ScopedFastLedBrightness {
133 public:

Callers 1

measureTightTimingFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected