diff --git a/platformio.ini b/platformio.ini index 14785c6..852971c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -8,6 +8,8 @@ ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html +; https://community.platformio.org/t/esp32-s3-zero-does-not-work-on-platformio/40297/10?u=unsignedarduino +; https://github.com/sivar2311/ESP32-S3-PlatformIO-Flash-and-PSRAM-configurations [env:esp32-s3-devkitc-1] platform = espressif32 board = esp32-s3-devkitc-1 diff --git a/src/main.cpp b/src/main.cpp index 56e0c4f..ae484a5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -32,8 +32,8 @@ void printESPInfo() { Serial.println("Flash"); Serial.print(" getFlashChipSize: "); prettyPrintBytes(ESP.getFlashChipSize()); Serial.printf(" getFlashChipSpeed: %d MHz\n", ESP.getFlashChipSpeed() / 1000 / 1000); - Serial.print(" getFlashChipMode: "); - Serial.println("SKIPPED"); + // ESP.getFlashChipMode() on the ESP32-S3 crashes the CPU + Serial.print(" getFlashChipMode: "); Serial.println("SKIPPED"); // switch (ESP.getFlashChipMode()) { // case FM_QIO: // Serial.println("QIO"); @@ -76,12 +76,15 @@ void printESPInfo() { void setup() { Serial.begin(115200); + // WS2818 is compatible with WS2811 but uses GRB CFastLED::addLeds(leds, NUM_LEDS); FastLED.setBrightness(32); delay(1000); printESPInfo(); + // Going to loop function crashes the CPU + // Instead use an infinite loop in setup while (true) { leds[0] = CRGB::Red; FastLED.delay(500);