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

◆ loop()

void loop ( )

Definition at line 29 of file EspI2SDemo.ino.

29 {
30 // Turn the LED on, then pause
31 leds[0] = CRGB::Red;
32 FastLED.show();
33 delay(500);
34 // Now turn the LED off, then pause
35 leds[0] = CRGB::Black;
36 FastLED.show();
37 delay(500);
38
39 // This is a no-op but tests that we have access to gCntBuffer, part of the
40 // i2s api. You can delete this in your own sketch. It's only here for testing
41 // purposes.
42 if (false) {
43 int value = gCntBuffer;
44 value++;
45 }
46}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
Definition crgb.h:611
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Definition crgb.h:499

References CRGB::Black, FastLED, leds, and CRGB::Red.