platformio.ini 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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. ; Please visit documentation for the other options and examples
  8. ; https://docs.platformio.org/page/projectconf.html
  9. ;
  10. ; Nr 21 has WIFIMANAGER set
  11. ; When set as a repaeter, also set the Channel to 1.
  12. [env:Gateway_21]
  13. platform = espressif8266
  14. board = d1_mini
  15. board_build.mcu = esp8266
  16. board_build.f_cpu = 80000000L
  17. build_flags =
  18. -D _PIN_OUT=1
  19. -D _WIFIMANAGER=0
  20. -D _CHANNEL=0
  21. -D _REPEATER=0
  22. -D _OLED=0
  23. -D _DUSB=1
  24. -D _PROFILER=1
  25. -D _STAT_LOG=1
  26. -D _STRICT_1CH=2
  27. -D _LOCALSERVER=1
  28. framework = arduino
  29. upload_protocol = espota
  30. board_build.flash_mode = qio
  31. upload_speed = 115200
  32. upload_port = 192.168.2.21
  33. ;[env:Gateway_22]
  34. ;platform = espressif8266
  35. ;board = d1_mini
  36. ;board_build.mcu = esp8266
  37. ;board_build.f_cpu = 80000000L
  38. ;build_flags =
  39. ; -D _PIN_OUT=1
  40. ; -D _WIFIMANAGER=0
  41. ; -D _CHANNEL=0
  42. ; -D _OLED=1
  43. ; -D _DUSB=1
  44. ; -D _PROFILER=1
  45. ;framework = arduino
  46. ;upload_protocol = espota
  47. ;board_build.flash_mode = qio
  48. ;upload_speed = 115200
  49. ;upload_port = 192.168.2.22
  50. [env:Gateway_30]
  51. platform = espressif8266
  52. board = d1_mini
  53. board_build.mcu = esp8266
  54. board_build.f_cpu = 80000000L
  55. build_flags =
  56. -D _PIN_OUT=1
  57. -D _WIFIMANAGER=0
  58. -D _SPIFFS_FORMAT=0
  59. -D _OLED=0
  60. -D _DUSB=1
  61. -D _PROFILER=1
  62. -D _STRICT_1CH=2
  63. -D _STAT_LOG=0
  64. framework = arduino
  65. upload_protocol = espota
  66. board_build.flash_mode = qio
  67. upload_speed = 115200
  68. upload_port = 192.168.2.30
  69. [env:Gateway_38]
  70. platform = espressif32
  71. board = heltec_wifi_lora_32
  72. framework = arduino
  73. build_flags =
  74. -D _WIFIMANAGER=0
  75. -D _SPIFFS_FORMAT=0
  76. -D _OLED=1
  77. -D _DUSB=1
  78. -D _PROFILER=1
  79. ; -D _JSONENCODE=1
  80. -D _STRICT_1CH=2
  81. -D _MAXSEEN=10
  82. -D _STAT_LOG=0
  83. upload_protocol = espota
  84. board_build.flash_mode = qio
  85. upload_speed = 115200
  86. upload_port = 192.168.2.38
  87. ;[env:Gateway_HC8]
  88. ;platform = espressif8266
  89. ;board = d1_mini
  90. ;board_build.mcu = esp8266
  91. ;board_build.f_cpu = 80000000L
  92. ;build_flags =
  93. ; -D _WIFIMANAGER=0
  94. ; -D _SPIFFS_FORMAT=1
  95. ; -D _OLED=0
  96. ; -D _DUSB=1
  97. ; -D _PROFILER=1
  98. ; -D _STAT_LOG=0
  99. ;framework = arduino
  100. ;upload_protocol = espota
  101. ;board_build.flash_mode = qio
  102. ;upload_speed = 115200
  103. ;upload_port = COM8
  104. ;[env:Gateway_72]
  105. ;platform = espressif32
  106. ;board = heltec_wifi_lora_32
  107. ;framework = arduino
  108. ;build_flags =
  109. ; -D _SPIFFS_FORMAT=0
  110. ;; -D _CHANNEL=1
  111. ;; -D _REPEATER=1
  112. ; -D _WIFIMANAGER=0
  113. ; -D _OLED=0
  114. ; -D _DUSB=1
  115. ; -D _PROFILER=1
  116. ; -D _STAT_LOG=0
  117. ;upload_protocol = espota
  118. ;board_build.flash_mode = qio
  119. ;upload_speed = 115200
  120. ;upload_port = 192.168.2.72
  121. ; Nr. 54 has WIFIMANAGER sometimes set
  122. ; Also the Gateway is a T-Beam sensor for temperature and GPS (_GATEWAYNODE=1)
  123. ;[env:Gateway_73]
  124. ;platform = espressif32
  125. ;board = heltec_wifi_lora_32
  126. ;build_flags =
  127. ; -D _WIFIMANAGER=0
  128. ; -D _SPIFFS_FORMAT=0
  129. ; -D _DUSB=1
  130. ; -D _OLED=0
  131. ; -D _GATEWAYNODE=1
  132. ; -D _PROFILER=1
  133. ;; -D _JSONENCODE=1
  134. ; -D _STRICT_1CH=2
  135. ; -D _MAXSEEN=10
  136. ; -D _STAT_LOG=0
  137. ;framework = arduino
  138. ;upload_protocol = espota
  139. ;board_build.flash_mode = qio
  140. ;upload_speed = 115200
  141. ;upload_port = 192.168.2.73
  142. ;[env:Gateway_23]
  143. ;platform = espressif8266
  144. ;board = d1_mini
  145. ;board_build.mcu = esp8266
  146. ;board_build.f_cpu = 80000000L
  147. ;build_flags =
  148. ; -D _WIFIMANAGER=0
  149. ; -D _OLED=0
  150. ;framework = arduino
  151. ;upload_protocol = espota
  152. ;board_build.flash_mode = qio
  153. ;upload_speed = 115200
  154. ;upload_port = 192.168.2.23
  155. ;[env:Gateway_24]
  156. ;platform = espressif8266
  157. ;board = d1_mini
  158. ;board_build.mcu = esp8266
  159. ;board_build.f_cpu = 80000000L
  160. ;build_flags =
  161. ; -D _OLED=1
  162. ;framework = arduino
  163. ;upload_protocol = espota
  164. ;board_build.flash_mode = qio
  165. ;upload_speed = 115200
  166. ;upload_port = 192.168.2.24
  167. ;[env:Gateway_26]
  168. ;platform = espressif8266
  169. ;board = d1_mini
  170. ;board_build.mcu = esp8266
  171. ;board_build.f_cpu = 80000000L
  172. ;build_flags =
  173. ; -D _OLED=1
  174. ;framework = arduino
  175. ;upload_protocol = espota
  176. ;board_build.flash_mode = qio
  177. ;upload_speed = 115200
  178. ;upload_port = 192.168.2.26
  179. ;[env:Gateway_27]
  180. ;platform = espressif8266
  181. ;board = d1_mini
  182. ;board_build.mcu = esp8266
  183. ;board_build.f_cpu = 80000000L
  184. ;build_flags =
  185. ; -D _OLED=1
  186. ;framework = arduino
  187. ;upload_protocol = espota
  188. ;board_build.flash_mode = qio
  189. ;upload_speed = 115200
  190. ;upload_port = 192.168.2.27
  191. ;[env:Gateway_28]
  192. ;platform = espressif8266
  193. ;board = d1_mini
  194. ;board_build.mcu = esp8266
  195. ;board_build.f_cpu = 80000000L
  196. ;build_flags =
  197. ; -D _OLED=1
  198. ;framework = arduino
  199. ;upload_protocol = espota
  200. ;board_build.flash_mode = qio
  201. ;upload_speed = 115200
  202. ;upload_port = 192.168.2.28
  203. ;[env:Gateway_29]
  204. ;platform = espressif8266
  205. ;board = d1_mini
  206. ;board_build.mcu = esp8266
  207. ;board_build.f_cpu = 80000000L
  208. ;build_flags =
  209. ; -D _PIN_OUT=2
  210. ; -D _OLED=0
  211. ; -D _WIFIMANAGER=0
  212. ; -D _SPIFFS_FORMAT=1
  213. ; -D _DUSB=1
  214. ; -D _PROFILER=1
  215. ; -D _STAT_LOG=1
  216. ;framework = arduino
  217. ;upload_protocol = espota
  218. ;board_build.flash_mode = qio
  219. ;upload_speed = 115200
  220. ;upload_port = 192.168.2.29
  221. ;[env:Gateway_31]
  222. ;platform = espressif8266
  223. ;board = d1_mini
  224. ;board_build.mcu = esp8266
  225. ;board_build.f_cpu = 80000000L
  226. ;build_flags =
  227. ; -D _PIN_OUT=2
  228. ; -D _WIFIMANAGER=1
  229. ; -D _OLED=2
  230. ;framework = arduino
  231. ;upload_protocol = espota
  232. ;board_build.flash_mode = qio
  233. ;upload_speed = 115200
  234. ;upload_port = 192.168.2.31
  235. ;[env:Gateway_152]
  236. ;platform = espressif32
  237. ;board = heltec_wifi_lora_32
  238. ;framework = arduino
  239. ;build_flags =
  240. ; -D _WIFIMANAGER=0
  241. ; -D _OLED=1
  242. ; -D _DUSB=1
  243. ; -D _PROFILER=1
  244. ; -D _SPIFFS_FORMAT=1
  245. ; -D _STAT_LOG=0
  246. ;; -D _JSONENCODE=1
  247. ;; -D _MAXSEEN=20
  248. ;upload_protocol = espota
  249. ;board_build.flash_mode = qio
  250. ;upload_speed = 115200
  251. ;upload_port = 192.168.2.152
  252. ;[env:Gateway_174]
  253. ;platform = espressif32
  254. ;board = heltec_wifi_lora_32
  255. ;framework = arduino
  256. ;build_flags =
  257. ; -D _WIFIMANAGER=0
  258. ; -D _OLED=1
  259. ; -D _DUSB=1
  260. ; -D _PROFILER=1
  261. ; -D _SPIFFS_FORMAT=0
  262. ; -D _STAT_LOG=0
  263. ;; -D _JSONENCODE=1
  264. ;; -D _MAXSEEN=0
  265. ;upload_protocol = espota
  266. ;board_build.flash_mode = qio
  267. ;upload_speed = 115200
  268. ;upload_port = 192.168.2.174