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

◆ setup()

void setup ( )

Definition at line 148 of file Esp32S3I2SDemo.ino.

148 {
149 // put your setup code here, to run once:
150 Serial.begin(57600);
151
152 // This is used so that you can see if PSRAM is enabled. If not, we will crash in setup() or in loop().
153 log_d("Total heap: %d", ESP.getHeapSize());
154 log_d("Free heap: %d", ESP.getFreeHeap());
155 log_d("Total PSRAM: %d", ESP.getPsramSize()); // If this prints out 0, then PSRAM is not enabled.
156 log_d("Free PSRAM: %d", ESP.getFreePsram());
157
158 log_d("waiting 6 seconds before startup");
159 delay(6000); // The long reset time here is to make it easier to flash the device during the development process.
160
161 setup_i2s();
162 FastLED.setBrightness(32);
163
164}
void setup_i2s()
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:62

References FastLED, and setup_i2s().

+ Here is the call graph for this function: