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

Class LEDError

examples/AutoResearch/AutoResearchTest.h:59–73  ·  view source on GitHub ↗

@brief LED error information for a single run

Source from the content-addressed store, hash-verified

57
58/// @brief LED error information for a single run
59struct LEDError {
60 int led_index; ///< LED index where error occurred
61 uint8_t expected_r; ///< Expected R value
62 uint8_t expected_g; ///< Expected G value
63 uint8_t expected_b; ///< Expected B value
64 uint8_t actual_r; ///< Actual R value
65 uint8_t actual_g; ///< Actual G value
66 uint8_t actual_b; ///< Actual B value
67
68 LEDError(int idx, uint8_t exp_r, uint8_t exp_g, uint8_t exp_b,
69 uint8_t act_r, uint8_t act_g, uint8_t act_b)
70 : led_index(idx)
71 , expected_r(exp_r), expected_g(exp_g), expected_b(exp_b)
72 , actual_r(act_r), actual_g(act_g), actual_b(act_b) {}
73};
74
75/// @brief Single run result with error tracking
76struct RunResult {

Callers 1

runMultiTestFunction · 0.85

Calls

no outgoing calls

Tested by 1

runMultiTestFunction · 0.68