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
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}
#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 hue_time
uint32_t hxy
uint32_t v_time
constexpr EOrder GRB
Definition eorder.h:19
LIB8STATIC void random16_add_entropy(fl::u16 entropy) FL_NOEXCEPT
Add entropy into the random number generator.
Definition random8.h:110
LIB8STATIC void random16_set_seed(fl::u16 seed) FL_NOEXCEPT
Set the 16-bit seed used for the random number generator.
Definition random8.h:104
LIB8STATIC fl::u16 random16() FL_NOEXCEPT
Generate a 16-bit random number.
Definition random8.h:63
fl::u32 uint32_t
Definition s16x16x4.h:219
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
#define Serial
Definition serial.h:304

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

+ Here is the call graph for this function: