Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

242 lines
6.8 KiB

  1. [platformio]
  2. env_default = node-debug
  3. [common]
  4. lib_deps =
  5. DHT sensor library
  6. Adafruit Unified Sensor
  7. Time
  8. ArduinoJson
  9. ESPAsyncTCP
  10. ESPAsyncWebServer
  11. https://github.com/marvinroger/async-mqtt-client
  12. ESPAsyncUDP
  13. Embedis
  14. NtpClientLib
  15. OneWire
  16. DallasTemperature
  17. https://bitbucket.org/xoseperez/justwifi.git
  18. https://bitbucket.org/xoseperez/nofuss.git
  19. https://bitbucket.org/xoseperez/hlw8012.git
  20. https://bitbucket.org/xoseperez/emonliteesp.git
  21. https://bitbucket.org/xoseperez/fauxmoESP.git
  22. https://github.com/jccprj/RemoteSwitch-arduino-library
  23. lib_ignore = FauxmoESP, ESPAsyncUDP
  24. # ------------------------------------------------------------------------------
  25. [env:node-debug]
  26. platform = espressif8266
  27. framework = arduino
  28. board = nodemcuv2
  29. lib_deps = ${common.lib_deps}
  30. lib_ignore = ${common.lib_ignore}
  31. extra_script = pio_hooks.py
  32. build_flags = -g -DNODEMCUV2 -DDEBUG_PORT=Serial -DNOWSAUTH
  33. [env:node-debug-ota]
  34. platform = espressif8266
  35. framework = arduino
  36. board = nodemcuv2
  37. lib_deps = ${common.lib_deps}
  38. lib_ignore = ${common.lib_ignore}
  39. extra_script = pio_hooks.py
  40. build_flags = -g -DNODEMCUV2 -DDEBUG_PORT=Serial -DNOWSAUTH
  41. upload_speed = 115200
  42. upload_port = "192.168.4.1"
  43. upload_flags = --auth=fibonacci --port 8266
  44. [env:sonoff-debug]
  45. platform = espressif8266
  46. framework = arduino
  47. board = esp01_1m
  48. lib_deps = ${common.lib_deps}
  49. lib_ignore = ${common.lib_ignore}
  50. extra_script = pio_hooks.py
  51. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF
  52. [env:sonoff-debug-ota]
  53. platform = espressif8266
  54. framework = arduino
  55. board = esp01_1m
  56. lib_deps = ${common.lib_deps}
  57. lib_ignore = ${common.lib_ignore}
  58. extra_script = pio_hooks.py
  59. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF
  60. upload_speed = 115200
  61. upload_port = "192.168.4.1"
  62. upload_flags = --auth=fibonacci --port 8266
  63. [env:sonoff-dht22-debug]
  64. platform = espressif8266
  65. framework = arduino
  66. board = esp01_1m
  67. lib_deps = ${common.lib_deps}
  68. lib_ignore = ${common.lib_ignore}
  69. extra_script = pio_hooks.py
  70. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_DHT=1
  71. [env:sonoff-ds18b20-debug]
  72. platform = espressif8266
  73. framework = arduino
  74. board = esp01_1m
  75. lib_deps = ${common.lib_deps}
  76. lib_ignore = ${common.lib_ignore}
  77. extra_script = pio_hooks.py
  78. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_DS18B20=1
  79. [env:sonoff-pow-debug]
  80. platform = espressif8266
  81. framework = arduino
  82. board = esp01_1m
  83. lib_deps = ${common.lib_deps}
  84. lib_ignore = ${common.lib_ignore}
  85. extra_script = pio_hooks.py
  86. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF_POW
  87. [env:sonoff-pow-debug-ota]
  88. platform = espressif8266
  89. framework = arduino
  90. board = esp01_1m
  91. lib_deps = ${common.lib_deps}
  92. lib_ignore = ${common.lib_ignore}
  93. extra_script = pio_hooks.py
  94. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF_POW
  95. upload_speed = 115200
  96. upload_port = "192.168.4.1"
  97. upload_flags = --auth=fibonacci --port 8266
  98. [env:sonoff-dual-debug]
  99. platform = espressif8266
  100. framework = arduino
  101. board = esp01_1m
  102. lib_deps = ${common.lib_deps}
  103. lib_ignore = ${common.lib_ignore}
  104. extra_script = pio_hooks.py
  105. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DSONOFF_DUAL
  106. [env:sonoff-dual-debug-ota]
  107. platform = espressif8266
  108. framework = arduino
  109. board = esp01_1m
  110. lib_deps = ${common.lib_deps}
  111. lib_ignore = ${common.lib_ignore}
  112. extra_script = pio_hooks.py
  113. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DSONOFF_DUAL
  114. upload_speed = 115200
  115. upload_port = "192.168.4.1"
  116. upload_flags = --auth=fibonacci --port 8266
  117. [env:sonoff-4ch-debug]
  118. platform = espressif8266
  119. framework = arduino
  120. board = esp01_1m
  121. lib_deps = ${common.lib_deps}
  122. lib_ignore = ${common.lib_ignore}
  123. extra_script = pio_hooks.py
  124. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF_4CH
  125. [env:sonoff-4ch-debug-ota]
  126. platform = espressif8266
  127. framework = arduino
  128. board = esp01_1m
  129. lib_deps = ${common.lib_deps}
  130. lib_ignore = ${common.lib_ignore}
  131. extra_script = pio_hooks.py
  132. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF_4CH
  133. upload_speed = 115200
  134. upload_port = "192.168.4.1"
  135. upload_flags = --auth=fibonacci --port 8266
  136. [env:slampher-debug]
  137. platform = espressif8266
  138. framework = arduino
  139. board = esp01_1m
  140. lib_deps = ${common.lib_deps}
  141. lib_ignore = ${common.lib_ignore}
  142. extra_script = pio_hooks.py
  143. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSLAMPHER
  144. [env:slampher-debug-ota]
  145. platform = espressif8266
  146. framework = arduino
  147. board = esp01_1m
  148. lib_deps = ${common.lib_deps}
  149. lib_ignore = ${common.lib_ignore}
  150. extra_script = pio_hooks.py
  151. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSLAMPHER
  152. upload_speed = 115200
  153. upload_port = "192.168.4.1"
  154. upload_flags = --auth=fibonacci --port 8266
  155. [env:s20-debug]
  156. platform = espressif8266
  157. framework = arduino
  158. board = esp01_1m
  159. lib_deps = ${common.lib_deps}
  160. lib_ignore = ${common.lib_ignore}
  161. extra_script = pio_hooks.py
  162. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DS20
  163. [env:s20-debug-ota]
  164. platform = espressif8266
  165. framework = arduino
  166. board = esp01_1m
  167. lib_deps = ${common.lib_deps}
  168. lib_ignore = ${common.lib_ignore}
  169. extra_script = pio_hooks.py
  170. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DS20
  171. upload_speed = 115200
  172. upload_port = "192.168.4.1"
  173. upload_flags = --auth=fibonacci --port 8266
  174. [env:1ch-inching-debug]
  175. platform = espressif8266
  176. framework = arduino
  177. board = esp01_1m
  178. lib_deps = ${common.lib_deps}
  179. lib_ignore = ${common.lib_ignore}
  180. extra_script = pio_hooks.py
  181. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DITEAD_1CH_INCHING
  182. [env:electrodragon-debug]
  183. platform = espressif8266
  184. framework = arduino
  185. board = esp12e
  186. lib_deps = ${common.lib_deps}
  187. lib_ignore = ${common.lib_ignore}
  188. extra_script = pio_hooks.py
  189. build_flags = -g -DDEBUG_PORT=Serial -DDEBUG_PORT=Serial -DESP_RELAY_BOARD -DENABLE_DHT=1
  190. [env:electrodragon-debug-ota]
  191. platform = espressif8266
  192. framework = arduino
  193. board = esp12e
  194. lib_deps = ${common.lib_deps}
  195. lib_ignore = ${common.lib_ignore}
  196. extra_script = pio_hooks.py
  197. build_flags = -g -DDEBUG_PORT=Serial -DDEBUG_PORT=Serial -DESP_RELAY_BOARD -DENABLE_DHT=1
  198. upload_speed = 115200
  199. upload_port = "192.168.4.1"
  200. upload_flags = --auth=fibonacci --port 8266
  201. [env:ecoplug-debug]
  202. platform = espressif8266
  203. framework = arduino
  204. board = esp01_1m
  205. lib_deps = ${common.lib_deps}
  206. lib_ignore = ${common.lib_ignore}
  207. extra_script = pio_hooks.py
  208. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DECOPLUG
  209. [env:ecoplug-debug-ota]
  210. platform = espressif8266
  211. framework = arduino
  212. board = esp01_1m
  213. lib_deps = ${common.lib_deps}
  214. lib_ignore = ${common.lib_ignore}
  215. extra_script = pio_hooks.py
  216. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DECOPLUG
  217. upload_speed = 115200
  218. upload_port = "192.168.4.1"
  219. upload_flags = --auth=fibonacci --port 8266