diff --git a/PCBs/Wemos Lolin D32/Infos/sch_d32_v1.0.0.pdf b/PCBs/Wemos Lolin D32/Infos/sch_d32_v1.0.0.pdf new file mode 100644 index 0000000..1f6c423 Binary files /dev/null and b/PCBs/Wemos Lolin D32/Infos/sch_d32_v1.0.0.pdf differ diff --git a/PCBs/Wemos Lolin32/Infos/LOLIN32_Circuit.png b/PCBs/Wemos Lolin32/Infos/LOLIN32_Circuit.png new file mode 100644 index 0000000..9b54c65 Binary files /dev/null and b/PCBs/Wemos Lolin32/Infos/LOLIN32_Circuit.png differ diff --git a/platformio.ini b/platformio.ini index 6ae8c7a..6f6a504 100644 --- a/platformio.ini +++ b/platformio.ini @@ -24,7 +24,7 @@ lib_deps_external = ; https://github.com/pschatzmann/ESP32-A2DP.git [env:common] -build_flags = -DHAL=1 -DHAL=3 +build_flags = -DHAL=1 -DHAL=3 -DHAL=4 ; Don't forget to run this script if you changed the html-files provided in any way extra_scripts = pre:processHtml.py @@ -44,6 +44,7 @@ lib_deps = ${common.lib_deps_external} [env:lolin32] +;https://docs.platformio.org/en/latest/boards/espressif32/lolin32.html platform = espressif32 board = lolin32 framework = arduino @@ -59,6 +60,7 @@ upload_port = /dev/cu.SLAB_USBtoUART monitor_port = /dev/cu.SLAB_USBtoUART [env:lolin_d32] +;https://docs.platformio.org/en/latest/boards/espressif32/lolin_d32.html platform = espressif32 board = lolin_d32 framework = arduino @@ -74,6 +76,7 @@ upload_port = /dev/cu.SLAB_USBtoUART monitor_port = /dev/cu.SLAB_USBtoUART [env:lolin_d32_pro] +;https://docs.platformio.org/en/latest/boards/espressif32/lolin_d32_pro.html platform = espressif32 board = lolin_d32_pro framework = arduino @@ -87,8 +90,11 @@ lib_deps = extra_scripts = ${env:common.extra_scripts} upload_port = /dev/cu.wchusbserial1410 monitor_port = /dev/cu.wchusbserial1410 +build_flags = -DBOARD_HAS_PSRAM + -mfix-esp32-psram-cache-issue [env:nodemcu-32s] +;https://docs.platformio.org/en/latest/boards/espressif32/nodemcu-32s.html platform = espressif32 board = nodemcu-32s framework = arduino @@ -104,6 +110,7 @@ upload_port = /dev/cu.SLAB_USBtoUART monitor_port = /dev/cu.SLAB_USBtoUART [env:az-delivery-devkit-v4] +;https://docs.platformio.org/en/latest/boards/espressif32/az-delivery-devkit-v4.html platform = espressif32 board = az-delivery-devkit-v4 framework = arduino diff --git a/src/main.cpp b/src/main.cpp index 1eda696..0ccc166 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4156,6 +4156,7 @@ void setup() { snprintf(logBuf, serialLoglength, "%s: %u", (char *) FPSTR(freeHeapAfterSetup), ESP.getFreeHeap()); loggerNl(logBuf, LOGLEVEL_DEBUG); + Serial.printf("PSRAM: %u bytes\n", ESP.getPsramSize()); } diff --git a/src/settings-lolin32.h b/src/settings-lolin32.h index f570d17..e5c6719 100644 --- a/src/settings-lolin32.h +++ b/src/settings-lolin32.h @@ -7,8 +7,8 @@ Infos: https://arduino-projekte.info/wemos-lolin32/ Caveats: None Status: - tested with 2x SPI, RC522, SD (by biologist79) - tested with 1x SPI, PN5180, MMC (by biologist79) + tested with 2x SPI: RC522 & SD (by biologist79) + tested with 1x SPI: PN5180, SD (MMC) (by tueddy) */ //################## GPIO-configuration ############################## diff --git a/src/settings-lolin_d32_pro.h b/src/settings-lolin_d32_pro.h index cc4d50f..6cb1659 100644 --- a/src/settings-lolin_d32_pro.h +++ b/src/settings-lolin_d32_pro.h @@ -8,7 +8,7 @@ Schematics: https://www.wemos.cc/en/latest/_static/files/sch_d32_pro_v2.0.0.pdf Caveats: GPIO35 (battery monitoring) + SD can't be changed, it's built in Status: - tested with 2xSPI & RC522 (by biologist79) + tested with 2xSPI: RC522 & SD (by biologist79) */ //################## GPIO-configuration ##############################