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

◆ setup()

void setup ( )

Definition at line 70 of file SmartMatrix.ino.

70 {
71 // uncomment the following lines if you want to see FPS count information
72 // Serial.begin(38400);
73 // Serial.println("resetting!");
74 delay(3000);
76 FastLED.setBrightness(96);
77
78 // Initialize our coordinates to some random values
79 x = random16();
80 y = random16();
81 z = random16();
82
83 // Show off smart matrix scrolling text
84 pSmartMatrix->setScrollMode(wrapForward);
85 pSmartMatrix->setScrollColor({0xff, 0xff, 0xff});
86 pSmartMatrix->setScrollSpeed(15);
87 pSmartMatrix->setScrollFont(font6x10);
88 pSmartMatrix->scrollText("Smart Matrix & FastLED", -1);
89 pSmartMatrix->setScrollOffsetFromEdge(10);
90}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
void * pSmartMatrix
Pointer to the matrix object when using the Smart Matrix Library.
Definition FastLED.cpp:56
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
@ SMART_MATRIX
Definition FastLED.h:114
uint32_t z[NUM_LAYERS]
Definition Fire2023.ino:82
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
uint32_t y[NUM_LAYERS]
Definition Fire2023.ino:81
LIB8STATIC uint16_t random16()
Generate a 16-bit random number.
Definition random8.h:54

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

+ Here is the call graph for this function: