2024-08-05 08:06:50 +00: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
|
2024-04-03 19:22:53 +00:00
|
|
|
|
|
|
|
[platformio]
|
|
|
|
default_envs = emonesp-nodemcu32s, emonesp_spiffs
|
|
|
|
data_dir = src/data
|
|
|
|
|
|
|
|
[common]
|
|
|
|
version = -DBUILD_TAG=1.11
|
2024-08-05 08:06:50 +00:00
|
|
|
platform = espressif32@^6.6.0
|
2024-04-03 19:22:53 +00:00
|
|
|
framework = arduino
|
2024-08-05 08:06:50 +00:00
|
|
|
lib_deps =
|
2024-04-03 19:22:53 +00:00
|
|
|
PubSubClient
|
2024-08-05 08:06:50 +00:00
|
|
|
plapointe6/HAMqttDevice@^1.4.0
|
|
|
|
https://github.com/Aircoookie/ESPAsyncWebServer.git
|
|
|
|
RadioLib
|
|
|
|
ArduinoJson
|
2024-04-03 19:22:53 +00:00
|
|
|
monitor_speed = 115200
|
2024-08-05 08:06:50 +00:00
|
|
|
board_build.flash_mode = qio
|
2024-04-03 19:22:53 +00:00
|
|
|
board_build.f_cpu = 240000000L
|
|
|
|
board_build.f_flash = 40000000L
|
|
|
|
upload_speed = 921600
|
|
|
|
upload_resetmethod = nodemcu
|
2024-08-05 08:06:50 +00:00
|
|
|
platform_packages =
|
|
|
|
framework-arduinoespressif32
|
|
|
|
board_build.filesystem = littlefs
|
2024-04-03 19:22:53 +00:00
|
|
|
|
|
|
|
[env:emonesp-nodemcu32s]
|
|
|
|
board = nodemcu-32s
|
|
|
|
platform = ${common.platform}
|
|
|
|
framework = ${common.framework}
|
2024-08-05 08:06:50 +00:00
|
|
|
lib_deps =
|
|
|
|
${common.lib_deps}
|
|
|
|
build_flags =
|
|
|
|
${common.version}
|
|
|
|
-DCS_PLATFORM=CS_P_ESP32
|
|
|
|
-DWIFI_LED=LED_BUILTIN
|
|
|
|
-DENABLE_DEBUG
|
|
|
|
-DCORE_DEBUG_LEVEL=2
|
2024-04-03 19:22:53 +00:00
|
|
|
monitor_speed = ${common.monitor_speed}
|
|
|
|
board_build.flash_mode = ${common.board_build.flash_mode}
|
|
|
|
board_build.f_cpu = ${common.board_build.f_cpu}
|
|
|
|
board_build.partitions = custom.csv
|
|
|
|
upload_speed = ${common.upload_speed}
|
|
|
|
upload_resetmethod = ${common.upload_resetmethod}
|
|
|
|
|
|
|
|
[env:emonesp_spiffs]
|
|
|
|
board = nodemcu-32s
|
|
|
|
platform = ${common.platform}
|
|
|
|
framework = ${common.framework}
|
|
|
|
upload_speed = ${common.upload_speed}
|
|
|
|
upload_resetmethod = ${common.upload_resetmethod}
|
|
|
|
targets = buildfs
|
|
|
|
|
|
|
|
[env:emonesp_deploy]
|
|
|
|
extends = env:emonesp-nodemcu32s
|
|
|
|
build_src_flags = !(test -z $TRAVIS_TAG && echo '${common.version}') || echo '-DBUILD_TAG='$TRAVIS_TAG
|
|
|
|
|
|
|
|
[env:emonesp_staging]
|
|
|
|
extends = env:emonesp-nodemcu32s
|
2024-08-05 08:06:50 +00:00
|
|
|
platform_packages =
|
|
|
|
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
|
|
|
|
lib_deps =
|
|
|
|
https://github.com/knolleary/pubsubclient,
|
|
|
|
https://github.com/fhessel/esp32_https_server.git
|
|
|
|
|
|
|
|
[env:heltec_wifi_lora_32_V3]
|
|
|
|
board = heltec_wifi_lora_32_V3
|
|
|
|
platform = ${common.platform}
|
|
|
|
framework = ${common.framework}
|
|
|
|
lib_deps =
|
|
|
|
${common.lib_deps}
|
|
|
|
build_flags =
|
|
|
|
${common.version}
|
|
|
|
-DWIFI_LED=LED_BUILTIN
|
|
|
|
# -DENABLE_DEBUG
|
|
|
|
-DCORE_DEBUG_LEVEL=1
|
|
|
|
-DWIFI_BUTTON=0
|
|
|
|
-DHELTECLORA32V3
|
|
|
|
-DENABLE_LORASENDER
|
|
|
|
monitor_speed = ${common.monitor_speed}
|
|
|
|
board_build.f_cpu = ${common.board_build.f_cpu}
|
|
|
|
board_build.partitions = custom.csv
|
|
|
|
upload_speed = ${common.upload_speed}
|
|
|
|
upload_resetmethod = ${common.upload_resetmethod}
|
|
|
|
board_build.filesystem = ${common.board_build.filesystem}
|