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.

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