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

◆ setup()

void setup ( )

Definition at line 79 of file Noise.ino.

79 {
80 // uncomment the following lines if you want to see FPS count information
81 // Serial.begin(38400);
82 // Serial.println("resetting!");
83 delay(3000);
84 FastLED.addLeds<WS2811,2,RGB>(leds,NUM_LEDS);
85 FastLED.setBrightness(96);
86
87 // Initialize our coordinates to some random values
88 x = random16();
89 y = random16();
90 z = random16();
91}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
uint32_t z[NUM_LAYERS]
Definition Fire2023.ino:82
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
uint32_t y[NUM_LAYERS]
Definition Fire2023.ino:81
WS2811 controller class.
Definition FastLED.h:241
@ RGB
Red, Green, Blue (0012)
Definition eorder.h:15
LIB8STATIC uint16_t random16()
Generate a 16-bit random number.
Definition random8.h:54

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

+ Here is the call graph for this function: