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.

235 lines
6.5 KiB

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