platformio.ini 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. ; PlatformIO Project Configuration File
  2. ;
  3. ; Build options: build flags, source filter
  4. ; Upload options: custom upload port, speed and extra flags
  5. ; Library options: dependencies, extra library storages
  6. ; Advanced options: extra scripting
  7. ;
  8. ; Please visit documentation for the other options and examples
  9. ; https://docs.platformio.org/page/projectconf.html
  10. [platformio]
  11. default_envs = core2-7-4_Minimal
  12. description = ESP8266 IoT Base
  13. src_dir = src
  14. ; custom common options
  15. [common]
  16. framework = arduino
  17. board = d1_mini
  18. upload_speed = 921600
  19. upload_resetmethod = nodemcu
  20. monitor_speed = 115200
  21. #board_build.upload_speed = 921600
  22. #board_build.upload_resetmethod = nodemcu
  23. #monitor_speed = 115200
  24. [env:core2-6-3]
  25. platform = espressif8266@2.3.2
  26. ;platform: espressif8266@2.3.2 = Arduino Core 2.6.3
  27. board = d1_mini
  28. framework = arduino
  29. ;upload_port = COM[6]
  30. #board_build.upload_speed = 921600
  31. #board_build.upload_resetmethod = nodemcu
  32. #monitor_speed = 115200
  33. [env:core2-7-4_Minimal]
  34. platform = espressif8266@2.6.3
  35. ;platform: espressif8266@2.6.2, 2.6.3 = Arduino Core 2.7.4
  36. board = d1_mini
  37. framework = arduino
  38. #build_flags = ${env.build_flags} -DFIRMWARE_VARIANT_THERMOSTAT
  39. #lib_extra_dirs =
  40. ;upload_port = COM[6]
  41. #board_build.upload_speed = 921600
  42. #board_build.upload_resetmethod = nodemcu
  43. #monitor_speed = 115200
  44. [env:core2-7-4_Thermostat]
  45. platform = espressif8266@2.6.3
  46. ;platform: espressif8266@2.6.2, 2.6.3 = Arduino Core 2.7.4
  47. board = d1_mini
  48. framework = arduino
  49. build_flags = ${env.build_flags} -DFIRMWARE_VARIANT_THERMOSTAT
  50. #lib_extra_dirs =
  51. ;upload_port = COM[6]
  52. #upload_speed = 921600
  53. #upload_resetmethod = nodemcu
  54. #monitor_speed = 115200
  55. [env:core2-7-4_Heatcontrol]
  56. platform = espressif8266@2.6.3
  57. ;platform: espressif8266@2.6.2, 2.6.3 = Arduino Core 2.7.4
  58. board = d1_mini
  59. framework = arduino
  60. build_flags = ${env.build_flags} -DFIRMWARE_VARIANT_HEATCONTROL
  61. #lib_extra_dirs =
  62. ;upload_port = COM[6]
  63. upload_speed = 921600
  64. upload_resetmethod = nodemcu
  65. monitor_speed = 115200
  66. [env:core2-7-4_Minimal_OTAflash]
  67. platform = espressif8266@2.6.3
  68. ;platform: espressif8266@2.6.3 ; https://github.com/platformio/platform-espressif8266/releases v2.6.3 implements Arduino Core 2.7.4
  69. board = d1_mini
  70. framework = arduino
  71. #build_flags = ${env.build_flags} -DFIRMWARE_VARIANT_THERMOSTAT
  72. #lib_extra_dirs =
  73. upload_protocol = espota
  74. #upload_port = 10.1.5.154
  75. upload_port = 10.1.5.154
  76. upload_flags =
  77. --port=8266
  78. #upload_speed = 921600
  79. #upload_resetmethod = nodemcu
  80. #monitor_speed = 115200
  81. [env:core2-7-4_Thermostat_OTAflash]
  82. platform = espressif8266@2.6.3
  83. ;platform: espressif8266@2.6.3 ; https://github.com/platformio/platform-espressif8266/releases v2.6.3 implements Arduino Core 2.7.4
  84. board = d1_mini
  85. framework = arduino
  86. build_flags = ${env.build_flags} -DFIRMWARE_VARIANT_THERMOSTAT
  87. #lib_extra_dirs =
  88. upload_protocol = espota
  89. #upload_port = 10.1.5.154
  90. upload_port = 10.1.5.154
  91. upload_flags =
  92. --port=8266
  93. #upload_speed = 921600
  94. #upload_resetmethod = nodemcu
  95. #monitor_speed = 115200
  96. [env:core2-7-4_Heatcontrol_OTAflash]
  97. platform = espressif8266@2.6.3
  98. ;platform: espressif8266@2.6.3 ; https://github.com/platformio/platform-espressif8266/releases v2.6.3 implements Arduino Core 2.7.4
  99. board = d1_mini
  100. framework = arduino
  101. build_flags = ${env.build_flags} -DFIRMWARE_VARIANT_HEATCONTROL
  102. #lib_extra_dirs =
  103. upload_protocol = espota
  104. #upload_port = 10.1.5.154
  105. upload_port = 10.1.5.169
  106. upload_flags =
  107. --port=8266
  108. #upload_speed = 921600
  109. #upload_resetmethod = nodemcu
  110. #monitor_speed = 115200
  111. [env:core3-0-2_Heatcontrol_OTAflash]
  112. platform = espressif8266@3.2.0 ; https://github.com/platformio/platform-espressif8266/releases v3.2.0 implements Arduino Core v3.0.2
  113. board = d1_mini
  114. framework = arduino
  115. build_flags = ${env.build_flags} -DFIRMWARE_VARIANT_HEATCONTROL
  116. #lib_extra_dirs =
  117. upload_protocol = espota
  118. #upload_port = 10.1.5.154
  119. upload_port = 10.1.5.154
  120. upload_flags =
  121. --port=8266
  122. #upload_speed = 921600
  123. #upload_resetmethod = nodemcu
  124. #monitor_speed = 115200
  125. [env:core3-1-1_Heatcontrol_OTAflash]
  126. platform = espressif8266@4.1.0 ; https://github.com/platformio/platform-espressif8266/releases v4.1.0 implements Arduino Core v3.1.1
  127. board = d1_mini
  128. framework = arduino
  129. build_flags = ${env.build_flags} -DFIRMWARE_VARIANT_HEATCONTROL
  130. #lib_extra_dirs =
  131. upload_protocol = espota
  132. #upload_port = 10.1.5.154
  133. upload_port = 10.1.5.154
  134. upload_flags =
  135. --port=8266
  136. #upload_speed = 921600
  137. #upload_resetmethod = nodemcu
  138. #monitor_speed = 115200