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

Function updateLEDs

examples/Asio/ClientValidation/ClientValidationReal.h:55–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53bool done = false; // Track completion to print results once
54
55void updateLEDs() {
56 switch (state) {
57 case SERVER_STARTING:
58 fill_solid(leds, NUM_LEDS, fl::CRGB(0, 0, beatsin8(60))); // Blue pulse
59 break;
60 case TEST_JSON:
61 case TEST_GET:
62 case TEST_PING:
63 fill_solid(leds, NUM_LEDS, fl::CRGB(64, 64, 0)); // Yellow - testing
64 break;
65 case ALL_PASSED:
66 fill_solid(leds, NUM_LEDS, fl::CRGB(0, 64, 0)); // Green - success
67 break;
68 case FAILED:
69 fill_solid(leds, NUM_LEDS, fl::CRGB(64, 0, 0)); // Red - failure
70 break;
71 }
72}
73
74void test_json_endpoint() {
75 FL_WARN("\n=== Test 1: GET /json (Slideshow Data) ===");

Callers 2

setupFunction · 0.70
loopFunction · 0.70

Calls 2

fill_solidFunction · 0.50
CRGBClass · 0.50

Tested by

no test coverage detected