FastLED 3.10.8
Loading...
Searching...
No Matches

◆ setup()

void setup ( )

Definition at line 88 of file Noise.ino.

88 {
89 // uncomment the following lines if you want to see FPS count information
90 // Serial.begin(38400);
91 // Serial.println("resetting!");
92 delay(3000);
93 FastLED.addLeds<WS2811,2,RGB>(leds,NUM_LEDS);
94 FastLED.setBrightness(96);
95
96 // Initialize our coordinates to some random values
97 x = random16();
98 y = random16();
99 z = random16();
100}
CRGB leds[1]
#define 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_NO_EXCEPT
Generate a 16-bit random number.
Definition random8.h:63
void delay(u32 ms, bool run_async=true) FL_NO_EXCEPT
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: