mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-10-16 04:51:30 +08:00

* Update WebSocket library * Update SSDP library * Update TFT_eSPI library * Update EspLuaEngine library * Update SDFat library * Change to pioarduino * Make ESP3DMessageFIFO and ESP3DMessage more thread safe * Fix sanity checks for BT * Add some C6 support * Refactor ethernet code * Split Ethernet Sta / WiFi sta ESP Commands and settings * Simplify wait and wdtFeed code * Set C3 with 4MB by default in platformio.ini * Apply Disable brown out only on ESP32 to avoid crash e.g:ESP32S3 * Add missing entries in platformio.ini
332 lines
10 KiB
INI
332 lines
10 KiB
INI
; PlatformIO Project Configuration File
|
|
;
|
|
; Build options: build flags, source filter
|
|
; Upload options: custom upload port, speed and extra flags
|
|
; Library options: dependencies, extra library storages
|
|
; Advanced options: extra scripting
|
|
;
|
|
; Please visit documentation for the other options and examples
|
|
; https://docs.platformio.org/page/projectconf.html
|
|
|
|
[platformio]
|
|
src_dir = esp3d
|
|
build_dir = .pioenvs
|
|
lib_dir = libraries
|
|
libdeps_dir = .piolibdeps
|
|
data_dir = esp3d/data
|
|
default_envs = esp32dev
|
|
|
|
[env:esp32dev]
|
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
|
|
board = esp32dev
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
monitor_echo = yes
|
|
monitor_filters = send_on_enter, colorize, esp32_exception_decoder
|
|
; set frequency to 240MHz
|
|
;board_build.f_cpu = 240000000L
|
|
; set frequency to 80MHz
|
|
;board_build.f_flash = 80000000L
|
|
;board_build.flash_mode = qio
|
|
;uncomment and modify if board is not 4MB
|
|
;board_upload.flash_size = 16MB
|
|
;board_build.partitions = default_16MB.csv
|
|
; None
|
|
build_flags = -DCORE_DEBUG_LEVEL=0
|
|
board_build.partitions = min_spiffs.csv
|
|
upload_speed = 460800
|
|
extra_scripts = pre:platformIO/extra_script.py
|
|
lib_ignore =
|
|
TFT_eSPI
|
|
|
|
[env:esp32cam]
|
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
|
|
board = esp32dev
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
monitor_echo = yes
|
|
monitor_filters = send_on_enter, colorize, esp32_exception_decoder
|
|
; set frequency to 240MHz
|
|
;board_build.f_cpu = 240000000L
|
|
; set frequency to 80MHz
|
|
;board_build.f_flash = 80000000L
|
|
;board_build.flash_mode = qio
|
|
;uncomment and modify if board is not 4MB
|
|
;board_upload.flash_size = 16MB
|
|
;board_build.partitions = default_16MB.csv
|
|
; None
|
|
build_flags = -DCORE_DEBUG_LEVEL=0
|
|
-DBOARD_HAS_PSRAM
|
|
-mfix-esp32-psram-cache-issue
|
|
board_build.partitions = min_spiffs.csv
|
|
upload_speed = 460800
|
|
extra_scripts = pre:platformIO/extra_script.py
|
|
lib_ignore =
|
|
TFT_eSPI
|
|
|
|
;TTGO_T_Display with ST7789
|
|
[env:esp32-TTGO_T_Display]
|
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
|
|
board = esp32dev
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
monitor_echo = yes
|
|
monitor_filters = send_on_enter, colorize, esp32_exception_decoder
|
|
; set frequency to 240MHz
|
|
;board_build.f_cpu = 240000000L
|
|
; set frequency to 80MHz
|
|
;board_build.f_flash = 80000000L
|
|
;board_build.flash_mode = qio
|
|
;uncomment and modify if board is not 4MB
|
|
;board_upload.flash_size = 16MB
|
|
;board_build.partitions = default_16MB.csv
|
|
; None
|
|
build_flags = -DCORE_DEBUG_LEVEL=0
|
|
-Os
|
|
-DUSER_SETUP_LOADED=1
|
|
-DST7789_DRIVER=1
|
|
-DTFT_SDA_READY=1
|
|
-DCGRAM_OFFSET=1
|
|
-DTFT_WIDTH=135
|
|
-DTFT_HEIGHT=240
|
|
-DTFT_MOSI=19
|
|
-DTFT_SCLK=18
|
|
-DTFT_CS=5
|
|
-DTFT_DC=16
|
|
-DTFT_RST=23
|
|
-DTFT_BL=4
|
|
-DTFT_BACKLIGHT_ON=1
|
|
-DLOAD_GLCD=1
|
|
-DLOAD_FONT2=1
|
|
-DLOAD_FONT4=1
|
|
-DLOAD_FONT6=1
|
|
-DLOAD_FONT7=1
|
|
-DLOAD_FONT8=1
|
|
-DLOAD_GFXFF=1
|
|
-DSMOOTH_FONT=1
|
|
-DSPI_FREQUENCY=40000000
|
|
-DSPI_READ_FREQUENCY=6000000
|
|
|
|
board_build.partitions = min_spiffs.csv
|
|
upload_speed = 460800
|
|
extra_scripts = pre:platformIO/extra_script.py
|
|
|
|
;TTGO_T_Display with ST7789
|
|
[env:esp32-ST7789]
|
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
|
|
board = esp32dev
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
monitor_echo = yes
|
|
monitor_filters = send_on_enter, colorize, esp32_exception_decoder
|
|
; set frequency to 240MHz
|
|
;board_build.f_cpu = 240000000L
|
|
; set frequency to 80MHz
|
|
;board_build.f_flash = 80000000L
|
|
;board_build.flash_mode = qio
|
|
;uncomment and modify if board is not 4MB
|
|
;board_upload.flash_size = 16MB
|
|
;board_build.partitions = default_16MB.csv
|
|
; None
|
|
build_flags = -DCORE_DEBUG_LEVEL=0
|
|
-Os
|
|
-DUSER_SETUP_LOADED=1
|
|
-DST7789_DRIVER=1
|
|
-DTFT_SDA_READY=1
|
|
-DCGRAM_OFFSET=1
|
|
-DTFT_WIDTH=240
|
|
-DTFT_HEIGHT=240
|
|
-DTFT_MOSI=19
|
|
-DTFT_SCLK=18
|
|
-DTFT_CS=5
|
|
-DTFT_DC=16
|
|
-DTFT_RST=23
|
|
-DTFT_BL=4
|
|
-DTFT_BACKLIGHT_ON=1
|
|
-DLOAD_GLCD=1
|
|
-DLOAD_FONT2=1
|
|
-DLOAD_FONT4=1
|
|
-DLOAD_FONT6=1
|
|
-DLOAD_FONT7=1
|
|
-DLOAD_FONT8=1
|
|
-DLOAD_GFXFF=1
|
|
-DSMOOTH_FONT=1
|
|
-DSPI_FREQUENCY=40000000
|
|
-DSPI_READ_FREQUENCY=6000000
|
|
|
|
board_build.partitions = min_spiffs.csv
|
|
upload_speed = 460800
|
|
extra_scripts = pre:platformIO/extra_script.py
|
|
|
|
[env:esp32-s2]
|
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
|
|
board = esp32-s2-saola-1
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
monitor_echo = yes
|
|
monitor_filters = send_on_enter, colorize, esp32_exception_decoder
|
|
board_build.f_cpu = 240000000L
|
|
board_build.mcu = esp32s2
|
|
board_build.variant = esp32s2
|
|
; set frequency to 80MHz
|
|
board_build.f_flash = 80000000L
|
|
board_build.flash_mode = qio
|
|
;uncomment and modify if board is not 4MB
|
|
;board_upload.flash_size = 16MB
|
|
;board_build.partitions = default_16MB.csv
|
|
; None
|
|
build_flags = -DCORE_DEBUG_LEVEL=0 -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 -DCONFIG_IDF_TARGET_ESP32S2=1
|
|
board_build.partitions = min_spiffs.csv
|
|
extra_scripts = pre:platformIO/extra_script.py
|
|
upload_speed = 460800
|
|
lib_ignore =
|
|
TFT_eSPI
|
|
;https://github.com/Bodmer/TFT_eSPI/issues/1246
|
|
|
|
[env:esp32-s3]
|
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
|
|
board = esp32-s3-devkitc-1
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
monitor_echo = yes
|
|
monitor_filters = send_on_enter, colorize, esp32_exception_decoder
|
|
board_build.f_cpu = 240000000L
|
|
board_build.mcu = esp32s3
|
|
board_build.variant = esp32s3
|
|
board_build.arduino.memory_type = qio_opi
|
|
; set frequency to 80MHz
|
|
board_build.f_flash = 80000000L
|
|
board_build.flash_mode = qio
|
|
extra_scripts = pre:platformIO/extra_script.py
|
|
;uncomment and modify if board is not 4MB
|
|
;board_upload.flash_size = 16MB
|
|
;board_build.partitions = default_16MB.csv
|
|
; None
|
|
build_flags = -DCORE_DEBUG_LEVEL=0 -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 -DCONFIG_IDF_TARGET_ESP32S3=1 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DBOARD_HAS_PSRAM
|
|
board_build.partitions = min_spiffs.csv
|
|
upload_speed = 460800
|
|
|
|
[env:esp32-c3]
|
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
|
|
board = esp32-c3-devkitm-1
|
|
board_build.mcu = esp32c3
|
|
board_build.variant = esp32c3
|
|
framework = arduino
|
|
board_build.f_cpu = 160000000L
|
|
board_build.f_flash = 80000000L
|
|
board_build.flash_mode = qio
|
|
monitor_speed = 115200
|
|
monitor_echo = yes
|
|
monitor_filters = send_on_enter, colorize, esp32_exception_decoder
|
|
build_flags = -DCORE_DEBUG_LEVEL=0 -DCONFIG_IDF_TARGET_ESP32C3=1
|
|
;on 4MB flash use
|
|
;board_build.partitions = min_spiffs.csv
|
|
;uncomment and modify if board is not 4MB
|
|
;board_upload.flash_size = 2MB
|
|
board_build.partitions = min_spiffs.csv
|
|
upload_speed = 460800
|
|
extra_scripts = pre:platformIO/extra_script.py
|
|
lib_ignore =
|
|
TFT_eSPI
|
|
|
|
[env:esp32-c6]
|
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
|
|
board = esp32-c6-devkitc-1
|
|
board_build.mcu = esp32c6
|
|
board_build.variant = esp32c6
|
|
framework = arduino
|
|
board_build.f_cpu = 160000000L
|
|
board_build.f_flash = 80000000L
|
|
board_build.flash_mode = qio
|
|
monitor_speed = 115200
|
|
monitor_echo = yes
|
|
monitor_filters = send_on_enter, colorize, esp32_exception_decoder
|
|
build_flags = -DCORE_DEBUG_LEVEL=0 -DCONFIG_IDF_TARGET_ESP32C6=1
|
|
;on 4MB flash use
|
|
;board_build.partitions = min_spiffs.csv
|
|
;uncomment and modify if board is not 4MB
|
|
;board_upload.flash_size = 8MB
|
|
board_build.partitions = min_spiffs.csv
|
|
upload_speed = 460800
|
|
extra_scripts = pre:platformIO/extra_script.py
|
|
lib_ignore =
|
|
TFT_eSPI
|
|
|
|
[env:esp8266dev]
|
|
platform = espressif8266@4.1.0
|
|
board = esp12e
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
monitor_echo = yes
|
|
monitor_filters = send_on_enter, colorize, esp8266_exception_decoder
|
|
; set frequency to 160MHz
|
|
board_build.f_cpu = 160000000L
|
|
; set frequency to 40MHz
|
|
board_build.f_flash = 40000000L
|
|
board_build.flash_mode = dout
|
|
upload_resetmethod = nodemcu
|
|
board_build.ldscript = eagle.flash.4m2m.ld
|
|
build_flags =
|
|
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
|
|
-DNONOSDK221=1
|
|
-DNDEBUG
|
|
-DVTABLES_IN_FLASH
|
|
-DWAVEFORM_LOCKED_PWM
|
|
upload_speed = 115200
|
|
extra_scripts = pre:platformIO/extra_script.py
|
|
lib_ignore =
|
|
ESP32SSDP
|
|
TFT_eSPI
|
|
|
|
[env:esp01s_160mhz]
|
|
platform = espressif8266@4.1.0
|
|
board = esp12e
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
monitor_echo = yes
|
|
monitor_filters = send_on_enter, colorize, esp8266_exception_decoder
|
|
; set frequency to 160MHz
|
|
board_build.f_cpu = 160000000L
|
|
; set frequency to 40MHz
|
|
board_build.f_flash = 40000000L
|
|
board_build.flash_mode = dout
|
|
upload_resetmethod = ck
|
|
board_build.ldscript = eagle.flash.1m256.ld
|
|
build_flags =
|
|
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
|
|
-DNONOSDK221=1
|
|
-DNDEBUG
|
|
-DVTABLES_IN_FLASH
|
|
-DWAVEFORM_LOCKED_PWM
|
|
upload_speed = 115200
|
|
extra_scripts = pre:platformIO/extra_script.py
|
|
lib_ignore =
|
|
ESP32SSDP
|
|
TFT_eSPI
|
|
|
|
[env:esp8285]
|
|
platform = espressif8266@4.1.0
|
|
board = esp8285
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
monitor_echo = yes
|
|
monitor_filters = send_on_enter, colorize, esp8266_exception_decoder
|
|
; set frequency to 160MHz
|
|
board_build.f_cpu = 160000000L
|
|
; set frequency to 40MHz
|
|
board_build.f_flash = 40000000L
|
|
board_build.flash_mode = dout
|
|
upload_resetmethod = ck
|
|
board_build.ldscript = eagle.flash.1m256.ld
|
|
build_flags =
|
|
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
|
|
-DNONOSDK221=1
|
|
-DNDEBUG
|
|
-DVTABLES_IN_FLASH
|
|
-DWAVEFORM_LOCKED_PWM
|
|
upload_speed = 115200
|
|
extra_scripts = pre:platformIO/extra_script.py
|
|
lib_ignore =
|
|
ESP32SSDP
|
|
TFT_eSPI
|