File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -611,10 +611,12 @@ void WLED::setup()
611611 DEBUG_PRINTLN (F (" PSRAM not used." ));
612612 #endif
613613#endif
614- #if defined(ARDUINO_ESP32_PICO)
615- // special handling for PICO-D4: gpio16+17 are in use for onboard SPI FLASH (not PSRAM)
616- managed_pin_type pins[] = { {16 , true }, {17 , true } };
617- pinManager.allocateMultiplePins (pins, sizeof (pins)/sizeof (managed_pin_type), PinOwner::SPI_RAM);
614+ #if defined(ARDUINO_ARCH_ESP32)
615+ if (strncmp (" ESP32-PICO" , ESP.getChipModel (), 10 ) == 0 ) { // WLEDMM detect pico board at runtime
616+ // special handling for PICO-D4: gpio16+17 are in use for onboard SPI FLASH (not PSRAM)
617+ managed_pin_type pins[] = { {16 , true }, {17 , true } };
618+ pinManager.allocateMultiplePins (pins, sizeof (pins)/sizeof (managed_pin_type), PinOwner::SPI_RAM);
619+ }
618620#endif
619621
620622 // DEBUG_PRINT(F("LEDs inited. heap usage ~"));
You can’t perform that action at this time.
0 commit comments