mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-11 02:34:29 +05:00
201 lines
5.3 KiB
INI
201 lines
5.3 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
|
|
|
|
[env]
|
|
framework = arduino
|
|
lib_deps =
|
|
;bblanchon/ArduinoJson@^6.21.4
|
|
https://github.com/bblanchon/ArduinoJson/archive/refs/heads/7.x.zip
|
|
;ihormelnyk/OpenTherm Library@^1.1.4
|
|
https://github.com/Laxilef/opentherm_library/archive/refs/heads/dev.zip
|
|
knolleary/PubSubClient@^2.8
|
|
;lennarthennigs/ESP Telnet@^2.1.2
|
|
https://github.com/Laxilef/ESPTelnet/archive/refs/heads/alt_fix_freeze.zip
|
|
gyverlibs/EEManager@^2.0
|
|
;gyverlibs/GyverPID@^3.3
|
|
https://github.com/Laxilef/GyverPID/archive/refs/heads/feat_change_dt_type.zip
|
|
gyverlibs/GyverBlinker@^1.0
|
|
milesburton/DallasTemperature@^3.11.0
|
|
laxilef/TinyLogger@^1.0.9
|
|
https://github.com/Laxilef/WiFiManager/archive/refs/heads/patch-1.zip
|
|
;https://github.com/tzapu/WiFiManager.git#v2.0.16-rc.2
|
|
build_flags =
|
|
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
|
|
-D PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK305
|
|
-mtext-section-literals
|
|
-D USE_SERIAL=0
|
|
-D USE_TELNET=1
|
|
upload_speed = 921600
|
|
monitor_speed = 115200
|
|
version = 1.4.0-rc.5
|
|
|
|
; Defaults
|
|
[esp8266_defaults]
|
|
platform = espressif8266
|
|
lib_deps =
|
|
${env.lib_deps}
|
|
;nrwiersma/ESP8266Scheduler@^1.0
|
|
https://github.com/Laxilef/ESP8266Scheduler/archive/refs/heads/network_fix.zip
|
|
lib_ignore =
|
|
extra_scripts =
|
|
post:tools/build.py
|
|
build_flags = ${env.build_flags}
|
|
|
|
[esp32_defaults]
|
|
platform = espressif32
|
|
lib_deps =
|
|
${env.lib_deps}
|
|
laxilef/ESP32Scheduler@^1.0.1
|
|
lib_ignore =
|
|
extra_scripts =
|
|
post:tools/esp32.py
|
|
post:tools/build.py
|
|
build_flags =
|
|
${env.build_flags}
|
|
-D CORE_DEBUG_LEVEL=0
|
|
|
|
|
|
; Boards
|
|
[env:d1_mini]
|
|
platform = ${esp8266_defaults.platform}
|
|
board = d1_mini
|
|
lib_deps = ${esp8266_defaults.lib_deps}
|
|
lib_ignore = ${esp8266_defaults.lib_ignore}
|
|
extra_scripts = ${esp8266_defaults.extra_scripts}
|
|
build_flags =
|
|
${esp8266_defaults.build_flags}
|
|
-D OT_IN_PIN_DEFAULT=4
|
|
-D OT_OUT_PIN_DEFAULT=5
|
|
-D SENSOR_OUTDOOR_PIN_DEFAULT=12
|
|
-D SENSOR_INDOOR_PIN_DEFAULT=14
|
|
-D LED_STATUS_PIN=13
|
|
-D LED_OT_RX_PIN=15
|
|
|
|
[env:d1_mini_lite]
|
|
platform = ${esp8266_defaults.platform}
|
|
board = d1_mini_lite
|
|
lib_deps = ${esp8266_defaults.lib_deps}
|
|
lib_ignore = ${esp8266_defaults.lib_ignore}
|
|
extra_scripts = ${esp8266_defaults.extra_scripts}
|
|
build_flags =
|
|
${esp8266_defaults.build_flags}
|
|
-D OT_IN_PIN_DEFAULT=4
|
|
-D OT_OUT_PIN_DEFAULT=5
|
|
-D SENSOR_OUTDOOR_PIN_DEFAULT=12
|
|
-D SENSOR_INDOOR_PIN_DEFAULT=14
|
|
-D LED_STATUS_PIN=13
|
|
-D LED_OT_RX_PIN=15
|
|
|
|
[env:d1_mini_pro]
|
|
platform = ${esp8266_defaults.platform}
|
|
board = d1_mini_pro
|
|
lib_deps = ${esp8266_defaults.lib_deps}
|
|
lib_ignore = ${esp8266_defaults.lib_ignore}
|
|
extra_scripts = ${esp8266_defaults.extra_scripts}
|
|
build_flags =
|
|
${esp8266_defaults.build_flags}
|
|
-D OT_IN_PIN_DEFAULT=4
|
|
-D OT_OUT_PIN_DEFAULT=5
|
|
-D SENSOR_OUTDOOR_PIN_DEFAULT=12
|
|
-D SENSOR_INDOOR_PIN_DEFAULT=14
|
|
-D LED_STATUS_PIN=13
|
|
-D LED_OT_RX_PIN=15
|
|
|
|
[env:s2_mini]
|
|
platform = ${esp32_defaults.platform}
|
|
board = lolin_s2_mini
|
|
lib_deps = ${esp32_defaults.lib_deps}
|
|
lib_ignore = ${esp32_defaults.lib_ignore}
|
|
extra_scripts = ${esp32_defaults.extra_scripts}
|
|
build_flags =
|
|
${esp32_defaults.build_flags}
|
|
-D OT_IN_PIN_DEFAULT=33
|
|
-D OT_OUT_PIN_DEFAULT=35
|
|
-D SENSOR_OUTDOOR_PIN_DEFAULT=9
|
|
-D SENSOR_INDOOR_PIN_DEFAULT=7
|
|
-D LED_STATUS_PIN=11
|
|
-D LED_OT_RX_PIN=12
|
|
|
|
[env:s3_mini]
|
|
platform = ${esp32_defaults.platform}
|
|
board = lolin_s3_mini
|
|
lib_deps =
|
|
${esp32_defaults.lib_deps}
|
|
h2zero/NimBLE-Arduino@^1.4.1
|
|
lib_ignore = ${esp32_defaults.lib_ignore}
|
|
extra_scripts = ${esp32_defaults.extra_scripts}
|
|
build_flags =
|
|
${esp32_defaults.build_flags}
|
|
-D USE_BLE=1
|
|
-D OT_IN_PIN_DEFAULT=35
|
|
-D OT_OUT_PIN_DEFAULT=36
|
|
-D SENSOR_OUTDOOR_PIN_DEFAULT=13
|
|
-D SENSOR_INDOOR_PIN_DEFAULT=12
|
|
-D LED_STATUS_PIN=11
|
|
-D LED_OT_RX_PIN=10
|
|
|
|
[env:c3_mini]
|
|
platform = ${esp32_defaults.platform}
|
|
board = lolin_c3_mini
|
|
lib_deps =
|
|
${esp32_defaults.lib_deps}
|
|
h2zero/NimBLE-Arduino@^1.4.1
|
|
lib_ignore = ${esp32_defaults.lib_ignore}
|
|
extra_scripts = ${esp32_defaults.extra_scripts}
|
|
build_flags =
|
|
-D USE_BLE=1
|
|
-D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
|
|
-D OT_IN_PIN_DEFAULT=8
|
|
-D OT_OUT_PIN_DEFAULT=10
|
|
-D SENSOR_OUTDOOR_PIN_DEFAULT=0
|
|
-D SENSOR_INDOOR_PIN_DEFAULT=1
|
|
-D LED_STATUS_PIN=4
|
|
-D LED_OT_RX_PIN=5
|
|
|
|
[env:nodemcu_32s]
|
|
platform = ${esp32_defaults.platform}
|
|
board = nodemcu-32s
|
|
lib_deps =
|
|
${esp32_defaults.lib_deps}
|
|
h2zero/NimBLE-Arduino@^1.4.1
|
|
lib_ignore = ${esp32_defaults.lib_ignore}
|
|
extra_scripts = ${esp32_defaults.extra_scripts}
|
|
build_flags =
|
|
${esp32_defaults.build_flags}
|
|
-D USE_BLE=1
|
|
-D OT_IN_PIN_DEFAULT=21
|
|
-D OT_OUT_PIN_DEFAULT=22
|
|
-D SENSOR_OUTDOOR_PIN_DEFAULT=12
|
|
-D SENSOR_INDOOR_PIN_DEFAULT=13
|
|
-D LED_STATUS_PIN=2 ; 18
|
|
-D LED_OT_RX_PIN=19
|
|
;-D WOKWI=1
|
|
;-D DEBUG_BY_DEFAULT=1
|
|
;-D WM_DEBUG_MODE=3
|
|
|
|
[env:d1_mini32]
|
|
platform = ${esp32_defaults.platform}
|
|
board = wemos_d1_mini32
|
|
lib_deps =
|
|
${esp32_defaults.lib_deps}
|
|
h2zero/NimBLE-Arduino@^1.4.1
|
|
lib_ignore = ${esp32_defaults.lib_ignore}
|
|
extra_scripts = ${esp32_defaults.extra_scripts}
|
|
;board_build.partitions = huge_app.csv
|
|
build_flags =
|
|
${esp32_defaults.build_flags}
|
|
-D USE_BLE=1
|
|
-D OT_IN_PIN_DEFAULT=21
|
|
-D OT_OUT_PIN_DEFAULT=22
|
|
-D SENSOR_OUTDOOR_PIN_DEFAULT=12
|
|
-D SENSOR_INDOOR_PIN_DEFAULT=18
|
|
-D LED_STATUS_PIN=2
|
|
-D LED_OT_RX_PIN=19
|