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

Method reset_to_default

tests/fl/power_estimation.cpp:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 static void reset_to_default() {
37 // Reset power model to WS2812 @ 5V default (80, 55, 75, 5) with linear
38 // response; set_power_model rebuilds the scaling LUTs from the model's
39 // exponent field so this is sufficient to restore linear behavior.
40 set_power_model(PowerModelRGB());
41 }
42};
43
44// Simple test to verify the function exists and returns a reasonable value

Callers

nothing calls this directly

Calls 2

PowerModelRGBClass · 0.85
set_power_modelFunction · 0.50

Tested by

no test coverage detected