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

◆ setup()

void setup ( )

Definition at line 82 of file Noise.ino.

82 {
83 // uncomment the following lines if you want to see FPS count information
84 // Serial.begin(38400);
85 // Serial.println("resetting!");
86 delay(3000);
87 FastLED.addLeds<WS2811,2,RGB>(leds,NUM_LEDS);
88 FastLED.setBrightness(96);
89
90 // Initialize our coordinates to some random values
91 x = random16();
92 y = random16();
93 z = random16();
94}
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
int y
Definition simple.h:93
int x
Definition simple.h:92
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
uint32_t z[NUM_LAYERS]
Definition Fire2023.h:93
constexpr EOrder RGB
Definition eorder.h:17
LIB8STATIC fl::u16 random16() FL_NOEXCEPT
Generate a 16-bit random number.
Definition random8.h:63
void delay(u32 ms, bool run_async=true) FL_NOEXCEPT
Public delay wrapper that keeps bare Arduino delay() preferred after using fl::delay; while still all...
Definition delay.h:98

References FastLED, leds, NUM_LEDS, random16(), RGB, x, y, and z.

+ Here is the call graph for this function: