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

◆ setup()

void setup ( )

Definition at line 50 of file NoisePlayground.h.

50 {
51 // initialize the x/y and time values
53 random16_add_entropy(analogRead(3));
54
55 Serial.begin(57600);
56 Serial.println("resetting!");
57
58 delay(3000);
59 FastLED.addLeds<WS2811,2,GRB>(leds,NUM_LEDS);
60 FastLED.setBrightness(96);
61
62 hxy = (uint32_t)((uint32_t)random16() << 16) + (uint32_t)random16();
63 x = (uint32_t)((uint32_t)random16() << 16) + (uint32_t)random16();
64 y = (uint32_t)((uint32_t)random16() << 16) + (uint32_t)random16();
65 v_time = (uint32_t)((uint32_t)random16() << 16) + (uint32_t)random16();
66 hue_time = (uint32_t)((uint32_t)random16() << 16) + (uint32_t)random16();
67}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:62
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:82
uint32_t y[NUM_LAYERS]
Definition Fire2023.ino:83
uint32_t hue_time
uint32_t hxy
uint32_t v_time
WS2811 controller class.
Definition FastLED.h:258
@ 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:103
LIB8STATIC uint16_t random16()
Generate a 16-bit random number.
Definition random8.h:56
LIB8STATIC void random16_set_seed(uint16_t seed)
Set the 16-bit seed used for the random number generator.
Definition random8.h:97

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: