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

Function init_test_data

tests/profile/five_bit_hd_gamma.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25static CRGBA5 g_output[NUM_LEDS];
26
27static void init_test_data() {
28 // Fill with realistic LED color data - mix of patterns
29 for (int i = 0; i < NUM_LEDS; i++) {
30 g_input[i] = CRGB(
31 static_cast<u8>((i * 7 + 31) & 0xFF),
32 static_cast<u8>((i * 13 + 97) & 0xFF),
33 static_cast<u8>((i * 23 + 53) & 0xFF));
34 }
35}
36
37__attribute__((noinline)) void benchmark_baseline(int iterations) {
38 CRGB color_scale(255, 200, 180); // Typical color temperature correction

Callers 1

mainFunction · 0.85

Calls 1

CRGBClass · 0.50

Tested by

no test coverage detected