PowerFlies/v1.1/software/PowerFlyESP/platformio.ini

93 lines
2.6 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]
default_envs = emonesp-nodemcu32s, emonesp_spiffs
data_dir = src/data
[common]
version = -DBUILD_TAG=1.11
platform = espressif32@^6.6.0
framework = arduino
lib_deps =
PubSubClient
plapointe6/HAMqttDevice@^1.4.0
https://github.com/Aircoookie/ESPAsyncWebServer.git
RadioLib
ArduinoJson
monitor_speed = 115200
board_build.flash_mode = qio
board_build.f_cpu = 240000000L
board_build.f_flash = 40000000L
upload_speed = 921600
upload_resetmethod = nodemcu
platform_packages =
framework-arduinoespressif32
board_build.filesystem = littlefs
[env:emonesp-nodemcu32s]
board = nodemcu-32s
platform = ${common.platform}
framework = ${common.framework}
lib_deps =
${common.lib_deps}
build_flags =
${common.version}
-DCS_PLATFORM=CS_P_ESP32
-DWIFI_LED=LED_BUILTIN
-DENABLE_DEBUG
-DCORE_DEBUG_LEVEL=2
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
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}