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

◆ setup()

void setup ( )

Definition at line 72 of file SmartMatrixSketch.h.

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

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

+ Here is the call graph for this function: