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

Function expectedSize

tests/fl/chipsets/encoders/apa102.hpp:48–54  ·  view source on GitHub ↗

Helper: Calculate expected total size

Source from the content-addressed store, hash-verified

46
47// Helper: Calculate expected total size
48static size_t expectedSize(size_t num_leds) {
49 size_t start_frame = 4;
50 size_t led_data = num_leds * 4;
51 size_t end_dwords = (num_leds / 32) + 1;
52 size_t end_frame = end_dwords * 4;
53 return start_frame + led_data + end_frame;
54}
55
56//=============================================================================
57// encodeAPA102() - Global Brightness Tests

Callers 1

apa102.hppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected