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

◆ setup()

void setup ( )

Definition at line 70 of file NoisePlayground.ino.

70 {
71 // initialize the x/y and time values
73 random16_add_entropy(analogRead(3));
74
75 Serial.begin(57600);
76 Serial.println("resetting!");
77
78 delay(3000);
79 FastLED.addLeds<WS2811,2,GRB>(leds,NUM_LEDS);
80 FastLED.setBrightness(96);
81
82 hxy = (uint32_t)((uint32_t)random16() << 16) + (uint32_t)random16();
83 x = (uint32_t)((uint32_t)random16() << 16) + (uint32_t)random16();
84 y = (uint32_t)((uint32_t)random16() << 16) + (uint32_t)random16();
85 v_time = (uint32_t)((uint32_t)random16() << 16) + (uint32_t)random16();
86 hue_time = (uint32_t)((uint32_t)random16() << 16) + (uint32_t)random16();
87
88}
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 x[NUM_LAYERS]
Definition Fire2023.ino:80
uint32_t y[NUM_LAYERS]
Definition Fire2023.ino:81
uint32_t hue_time
uint32_t hxy
uint32_t v_time
WS2811 controller class.
Definition FastLED.h:241
@ GRB
Green, Red, Blue (0102)
Definition eorder.h:17
LIB8STATIC void random16_add_entropy(uint16_t entropy)
Add entropy into the random number generator.
Definition random8.h:101
LIB8STATIC uint16_t random16()
Generate a 16-bit random number.
Definition random8.h:54
LIB8STATIC void random16_set_seed(uint16_t seed)
Set the 16-bit seed used for the random number generator.
Definition random8.h:95

References FastLED, GRB, hue_time, hxy, leds, NUM_LEDS, random16(), random16_add_entropy(), random16_set_seed(), v_time, x, and y.

+ Here is the call graph for this function: