2025-02-13 20:59:07 +01:00
|
|
|
; 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
|
|
|
|
|
2025-02-16 10:26:43 +01:00
|
|
|
[common]
|
2025-03-01 12:37:50 +01:00
|
|
|
version = "1.4.0"
|
2025-03-01 12:18:21 +01:00
|
|
|
to_old_version = "1.4.0"
|
|
|
|
|
2025-02-23 11:34:32 +01:00
|
|
|
##
|
2025-02-13 20:59:07 +01:00
|
|
|
[env:esp32dev]
|
|
|
|
platform = espressif32
|
|
|
|
board = esp32dev
|
|
|
|
framework = arduino
|
|
|
|
monitor_speed = 115200
|
|
|
|
|
|
|
|
lib_deps =
|
|
|
|
tzapu/WiFiManager @ ^2.0.17
|
2025-02-21 16:35:19 +01:00
|
|
|
https://github.com/me-no-dev/ESPAsyncWebServer.git#master
|
2025-02-22 16:21:51 +01:00
|
|
|
#me-no-dev/AsyncTCP @ ^1.1.1
|
2025-02-21 16:35:19 +01:00
|
|
|
https://github.com/esphome/AsyncTCP.git
|
2025-02-22 16:21:51 +01:00
|
|
|
#mathieucarbou/ESPAsyncWebServer @ ^3.6.0
|
|
|
|
#esp32async/AsyncTCP @ ^3.3.5
|
2025-02-13 20:59:07 +01:00
|
|
|
bogde/HX711 @ ^0.7.5
|
|
|
|
adafruit/Adafruit SSD1306 @ ^2.5.13
|
|
|
|
adafruit/Adafruit GFX Library @ ^1.11.11
|
|
|
|
adafruit/Adafruit PN532 @ ^1.3.3
|
|
|
|
bblanchon/ArduinoJson @ ^7.3.0
|
|
|
|
knolleary/PubSubClient @ ^2.8
|
|
|
|
digitaldragon/SSLClient @ ^1.3.2
|
|
|
|
|
|
|
|
; Enable SPIFFS upload
|
2025-02-28 18:12:42 +01:00
|
|
|
#board_build.filesystem = spiffs
|
|
|
|
board_build.filesystem = littlefs
|
2025-02-16 12:29:12 +01:00
|
|
|
; Update partition settings
|
2025-02-16 11:47:20 +01:00
|
|
|
board_build.partitions = partitions.csv
|
2025-02-16 12:29:12 +01:00
|
|
|
board_upload.flash_size = 4MB
|
2025-02-18 11:42:52 +01:00
|
|
|
board_build.flash_mode = dio
|
|
|
|
board_upload.flash_freq = "40m"
|
2025-02-13 20:59:07 +01:00
|
|
|
|
|
|
|
build_flags =
|
|
|
|
-Os
|
|
|
|
-ffunction-sections
|
|
|
|
-fdata-sections
|
2025-02-28 18:12:42 +01:00
|
|
|
#-DNDEBUG
|
2025-02-13 20:59:07 +01:00
|
|
|
-mtext-section-literals
|
2025-02-21 16:35:19 +01:00
|
|
|
-DVERSION=\"${common.version}\"
|
2025-03-01 12:18:21 +01:00
|
|
|
-DTOOLDVERSION=\"${common.to_old_version}\"
|
2025-02-18 11:42:52 +01:00
|
|
|
-DASYNCWEBSERVER_REGEX
|
2025-02-28 18:12:42 +01:00
|
|
|
#-DCORE_DEBUG_LEVEL=3
|
2025-02-18 11:42:52 +01:00
|
|
|
-DCONFIG_ARDUHAL_LOG_COLORS=1
|
2025-02-28 18:12:42 +01:00
|
|
|
#-DOTA_DEBUG=1
|
2025-02-18 11:42:52 +01:00
|
|
|
-DCONFIG_OPTIMIZATION_LEVEL_DEBUG=1
|
2025-02-20 15:07:13 +01:00
|
|
|
-DBOOT_APP_PARTITION_OTA_0=1
|
2025-02-21 15:07:16 +01:00
|
|
|
-DCONFIG_LWIP_TCP_MSL=60000
|
|
|
|
-DCONFIG_LWIP_TCP_RCV_BUF_DEFAULT=4096
|
|
|
|
-DCONFIG_LWIP_MAX_ACTIVE_TCP=16
|
2025-02-18 11:42:52 +01:00
|
|
|
|
2025-02-13 20:59:07 +01:00
|
|
|
extra_scripts =
|
2025-02-17 11:49:39 +01:00
|
|
|
scripts/extra_script.py
|
2025-02-21 11:53:59 +01:00
|
|
|
${env:buildfs.extra_scripts}
|
2025-02-17 11:49:39 +01:00
|
|
|
|
2025-02-21 11:53:59 +01:00
|
|
|
[env:buildfs]
|
|
|
|
extra_scripts =
|
|
|
|
pre:scripts/combine_html.py ; Combine header with HTML files
|
|
|
|
scripts/gzip_files.py ; Compress files for SPIFFS
|
2025-02-17 11:49:39 +01:00
|
|
|
|
|
|
|
[platformio]
|
2025-02-20 19:52:34 +01:00
|
|
|
default_envs = esp32dev
|
2025-02-17 11:49:39 +01:00
|
|
|
|