FastLED 3.9.15
Loading...
Searching...
No Matches

◆ updateLEDs()

updateLEDs ( )

Definition at line 55 of file ClientValidationReal.h.

55 {
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}
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
@ SERVER_STARTING
TestState state
void fill_solid(CRGB *targetArray, int numToFill, const CRGB &color) FL_NOEXCEPT
Fill a range of LEDs with a solid color.
Definition fill.cpp.hpp:9
LIB8STATIC u8 beatsin8(accum88 beats_per_minute, u8 lowest=0, u8 highest=255, u32 timebase=0, u8 phase_offset=0) FL_NOEXCEPT
Generates an 8-bit sine wave at a given BPM that oscillates within a given range.
Definition beat.h:105
Representation of an 8-bit RGB pixel (Red, Green, Blue)
Definition crgb.h:38

References ALL_PASSED, beatsin8(), FAILED, fill_solid(), leds, NUM_LEDS, SERVER_STARTING, state, TEST_GET, TEST_JSON, and TEST_PING.

Referenced by loop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: