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

◆ setup()

void setup ( )

Definition at line 74 of file SmartMatrixSketch.h.

74 {
75 // uncomment the following lines if you want to see FPS count information
76 // Serial.begin(38400);
77 // Serial.println("resetting!");
78 delay(3000);
80 FastLED.setBrightness(96);
81
82 // Initialize our coordinates to some random values
83 x = random16();
84 y = random16();
85 z = random16();
86
87 // Show off smart matrix scrolling text
88 pSmartMatrix->setScrollMode(wrapForward);
89 pSmartMatrix->setScrollColor({0xff, 0xff, 0xff});
90 pSmartMatrix->setScrollSpeed(15);
91 pSmartMatrix->setScrollFont(font6x10);
92 pSmartMatrix->scrollText("Smart Matrix & FastLED", -1);
93 pSmartMatrix->setScrollOffsetFromEdge(10);
94}
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
int y
Definition simple.h:93
int x
Definition simple.h:92
void * pSmartMatrix
Pointer to the matrix object when using the Smart Matrix Library.
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
@ SMART_MATRIX
Definition FastLED.h:275
uint32_t z[NUM_LAYERS]
Definition Fire2023.h:93
LIB8STATIC fl::u16 random16() FL_NOEXCEPT
Generate a 16-bit random number.
Definition random8.h:63
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

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

+ Here is the call graph for this function: