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.

951 lines
30 KiB

6 years ago
6 years ago
6 years ago
  1. [platformio]
  2. default_envs = wemos-d1mini-relayshield
  3. src_dir = espurna
  4. data_dir = espurna/data
  5. extra_configs =
  6. platformio_ota.ini
  7. [common]
  8. # ------------------------------------------------------------------------------
  9. # PLATFORM:
  10. # !! DO NOT confuse platformio's ESP8266 development platform with Arduino core for ESP8266
  11. # We use Arduino Core 2.3.0 (platformIO 1.5.0) as default
  12. #
  13. # arduino core 2.3.0 = platformIO 1.5.0
  14. # arduino core 2.4.0 = platformIO 1.6.0 (not supported)
  15. # arduino core 2.4.1 = platformIO 1.7.3 (not supported)
  16. # arduino core 2.4.2 = platformIO 1.8.0 (not supported)
  17. # arduino core 2.5.0 = platformIO 2.0.4 (not supported)
  18. # arduino core 2.5.1 = platformIO 2.1.1 (not supported)
  19. # arduino core 2.5.2 = platformIO 2.2.3 (not supported)
  20. # arduino core 2.6.1 = platformIO 2.3.0
  21. # arduino core 2.6.2 = platformIO 2.3.1
  22. # arduino core 2.6.3 = platformIO 2.3.2
  23. # ------------------------------------------------------------------------------
  24. arduino_core_2_3_0 = espressif8266@1.5.0
  25. arduino_core_2_4_0 = espressif8266@1.6.0
  26. arduino_core_2_4_1 = espressif8266@1.7.3
  27. arduino_core_2_4_2 = espressif8266@1.8.0
  28. arduino_core_2_5_0 = espressif8266@2.0.4
  29. arduino_core_2_5_1 = espressif8266@2.1.1
  30. arduino_core_2_5_2 = espressif8266@2.2.3
  31. arduino_core_2_6_1 = espressif8266@2.3.0
  32. arduino_core_2_6_2 = espressif8266@2.3.1
  33. arduino_core_2_6_3 = espressif8266@2.3.2
  34. # Development platforms
  35. arduino_core_develop = https://github.com/platformio/platform-espressif8266#develop
  36. arduino_core_git = https://github.com/platformio/platform-espressif8266#feature/stage
  37. platform = ${common.arduino_core_2_3_0}
  38. platform_latest = ${common.arduino_core_2_6_3}
  39. # ------------------------------------------------------------------------------
  40. # FLAGS: DEBUG
  41. #
  42. # ------------------------------------------------------------------------------
  43. debug_flags = -DDEBUG_ESP_CORE -DDEBUG_ESP_SSL -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM
  44. #if needed (for memleaks etc) also add; -DDEBUG_ESP_OOM -include "umm_malloc/umm_malloc_cfg.h"
  45. # ------------------------------------------------------------------------------
  46. # FLAGS: build flags
  47. # build flags for 512k/1m ESP's are different because we use Linker Scripts to adjust flash split
  48. # build_flags_512k ( 512 KB) = 487 KB sketch, 4 KB eeprom, 16 KB reserved
  49. # build_flags_1m0m (1024 KB) = 999 KB sketch, 4 KB eeprom, 16 KB reserved
  50. # build_flags_2m1m (2048 KB) = 1019 KB sketch, 16 KB eeprom, 992 KB spiffs, 16 KB reserved
  51. # build_flags_4m1m (4096 KB) = 1019 KB sketch, 16 KB eeprom, 992 KB spiffs, 16 KB reserved, 2048 KB empty/ota?
  52. # build_flags_4m3m (4096 KB) = 1019 KB sketch, 16 KB eeprom, 3040 KB spiffs, 16 KB reserved
  53. #
  54. # Available lwIP variants (macros):
  55. # -DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH = v1.4 Higher Bandwidth (default)
  56. # -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY = v2 Lower Memory
  57. # -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH = v2 Higher Bandwidth
  58. #
  59. # BearSSL performance:
  60. # When building with -DSECURE_CLIENT=SECURE_CLIENT_BEARSSL, please add `board_build.f_cpu = 160000000` to the environment configuration
  61. #
  62. # BearSSL ciphers:
  63. # When building on core >= 2.5, you can add the build flag -DBEARSSL_SSL_BASIC in order to build BearSSL with a limited set of ciphers:
  64. # TLS_RSA_WITH_AES_128_CBC_SHA256 / AES128-SHA256
  65. # TLS_RSA_WITH_AES_256_CBC_SHA256 / AES256-SHA256
  66. # TLS_RSA_WITH_AES_128_CBC_SHA / AES128-SHA
  67. # TLS_RSA_WITH_AES_256_CBC_SHA / AES256-SHA
  68. # This reduces the OTA size with ~45KB, so it's especially useful on low memory boards (512k/1m).
  69. # ------------------------------------------------------------------------------
  70. board_1m = esp01_1m
  71. board_2m = esp_wroom_02
  72. board_4m = esp12e
  73. build_flags = -g -w -DMQTT_MAX_PACKET_SIZE=1024 -DNO_GLOBAL_EEPROM -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
  74. build_flags_512k = ${common.build_flags} -Wl,-Teagle.flash.512k0m1s.ld
  75. build_flags_1m0m = ${common.build_flags} -Wl,-Teagle.flash.1m0m1s.ld
  76. build_flags_2m1m = ${common.build_flags} -Wl,-Teagle.flash.2m1m4s.ld
  77. build_flags_4m1m = ${common.build_flags} -Wl,-Teagle.flash.4m1m4s.ld
  78. build_flags_4m3m = ${common.build_flags} -Wl,-Teagle.flash.4m3m4s.ld
  79. shared_libdeps_dir = libraries/
  80. # ------------------------------------------------------------------------------
  81. # COMMON SETTINGS:
  82. # ------------------------------------------------------------------------------
  83. [env]
  84. platform = ${common.platform}
  85. framework = arduino
  86. board_build.flash_mode = dout
  87. monitor_speed = 115200
  88. upload_speed = 115200
  89. extra_scripts = pre:scripts/pio_pre.py, scripts/pio_main.py
  90. lib_extra_dirs =
  91. ${common.shared_libdeps_dir}
  92. # ------------------------------------------------------------------------------
  93. # LIBRARIES: required dependencies
  94. # Please note that we don't always use the latest version of a library.
  95. # ------------------------------------------------------------------------------
  96. lib_deps =
  97. ArduinoJson@5.13.4
  98. https://github.com/marvinroger/async-mqtt-client#v0.8.1
  99. Brzo I2C
  100. https://github.com/xoseperez/debounceevent.git#2.0.5
  101. https://github.com/xoseperez/eeprom_rotate#0.9.2
  102. Embedis
  103. https://github.com/plerup/espsoftwareserial#3.4.1
  104. https://github.com/me-no-dev/ESPAsyncTCP#7e9ed22
  105. https://github.com/me-no-dev/ESPAsyncWebServer#b0c6144
  106. https://bitbucket.org/xoseperez/fauxmoesp.git#3.1.0
  107. https://github.com/xoseperez/hlw8012.git#1.1.0
  108. https://github.com/markszabo/IRremoteESP8266#v2.2.0
  109. https://github.com/xoseperez/justwifi.git#2.0.2
  110. https://github.com/madpilot/mDNSResolver#4cfcda1
  111. https://github.com/xoseperez/my92xx#3.0.1
  112. MQTT
  113. https://bitbucket.org/xoseperez/nofuss.git#0.3.0
  114. https://github.com/xoseperez/NtpClient.git#0942ebc
  115. OneWire
  116. PZEM004T
  117. PubSubClient
  118. rc-switch
  119. https://github.com/LowPowerLab/RFM69#1.1.3
  120. https://github.com/xoseperez/rpnlib.git#0.3.0
  121. https://github.com/xoseperez/Time
  122. NewPing
  123. https://github.com/sparkfun/SparkFun_VEML6075_Arduino_Library#V_1.0.3
  124. https://github.com/pololu/vl53l1x-arduino#1.0.1
  125. https://github.com/mcleng/MAX6675-Library#2.0.1
  126. https://github.com/ElderJoy/esp8266-oled-ssd1306#4.0.1
  127. lib_ignore =
  128. AsyncTCP
  129. # ------------------------------------------------------------------------------
  130. # ESPURNA CORE BUILDS
  131. # ------------------------------------------------------------------------------
  132. [env:espurna-core-1MB]
  133. board = ${common.board_1m}
  134. build_flags = ${common.build_flags_1m0m} -DESPURNA_CORE
  135. [env:espurna-core-2MB]
  136. board = ${common.board_2m}
  137. build_flags = ${common.build_flags_2m1m} -DESPURNA_CORE
  138. [env:espurna-core-4MB]
  139. board = ${common.board_4m}
  140. build_flags = ${common.build_flags_4m1m} -DESPURNA_CORE
  141. [env:espurna-core-smartconfig-1MB]
  142. board = ${common.board_1m}
  143. build_flags = ${common.build_flags_1m0m} -DESPURNA_CORE -DJUSTWIFI_ENABLE_SMARTCONFIG=1
  144. [env:espurna-core-smartconfig-2MB]
  145. board = ${common.board_2m}
  146. build_flags = ${common.build_flags_2m1m} -DESPURNA_CORE -DJUSTWIFI_ENABLE_SMARTCONFIG=1
  147. [env:espurna-core-smartconfig-4MB]
  148. board = ${common.board_4m}
  149. build_flags = ${common.build_flags_4m1m} -DESPURNA_CORE -DJUSTWIFI_ENABLE_SMARTCONFIG=1
  150. [env:espurna-core-wps-1MB]
  151. board = ${common.board_1m}
  152. build_flags = ${common.build_flags_1m0m} -DESPURNA_CORE -DJUSTWIFI_ENABLE_WPS=1
  153. [env:espurna-core-wps-2MB]
  154. board = ${common.board_2m}
  155. build_flags = ${common.build_flags_2m1m} -DESPURNA_CORE -DJUSTWIFI_ENABLE_WPS=1
  156. [env:espurna-core-wps-4MB]
  157. board = ${common.board_4m}
  158. build_flags = ${common.build_flags_4m1m} -DESPURNA_CORE -DJUSTWIFI_ENABLE_WPS=1
  159. # ------------------------------------------------------------------------------
  160. # ESPURNA BASE BUILDS
  161. # ------------------------------------------------------------------------------
  162. [env:espurna-base-1MB]
  163. board = ${common.board_1m}
  164. build_flags = ${common.build_flags_1m0m} -DESPURNA_BASE
  165. # ------------------------------------------------------------------------------
  166. # GENERIC OTA ENVIRONMENTS
  167. # ------------------------------------------------------------------------------
  168. [env:esp8266-1m-ota]
  169. board = ${common.board_1m}
  170. build_flags = ${common.build_flags_1m0m}
  171. [env:esp8266-2m-ota]
  172. board = ${common.board_2m}
  173. build_flags = ${common.build_flags_2m1m}
  174. [env:esp8266-4m-ota]
  175. board = ${common.board_4m}
  176. build_flags = ${common.build_flags_4m1m}
  177. [env:esp8266-latest-1m-ota]
  178. platform = ${common.platform_latest}
  179. board = ${common.board_1m}
  180. build_flags = ${common.build_flags_1m0m}
  181. [env:esp8266-latest-2m-ota]
  182. platform = ${common.platform_latest}
  183. board = ${common.board_2m}
  184. build_flags = ${common.build_flags_2m1m}
  185. [env:esp8266-latest-4m-ota]
  186. platform = ${common.platform_latest}
  187. board = ${common.board_4m}
  188. build_flags = ${common.build_flags_4m1m}
  189. [env:esp8266-git-1m-ota]
  190. platform = ${common.arduino_core_git}
  191. board = ${common.board_1m}
  192. build_flags = ${common.build_flags_1m0m}
  193. [env:esp8266-git-2m-ota]
  194. platform = ${common.arduino_core_git}
  195. board = ${common.board_2m}
  196. build_flags = ${common.build_flags_2m1m}
  197. [env:esp8266-git-4m-ota]
  198. platform = ${common.arduino_core_git}
  199. board = ${common.board_4m}
  200. build_flags = ${common.build_flags_4m1m}
  201. # ------------------------------------------------------------------------------
  202. # SPECIAL BUILDS - DO. NOT. USE. ever ---
  203. # ------------------------------------------------------------------------------
  204. [env:travis-2_3_0]
  205. platform = ${common.arduino_core_2_3_0}
  206. board = ${common.board_4m}
  207. build_flags = ${common.build_flags_4m1m}
  208. [env:travis-latest]
  209. platform = ${common.platform_latest}
  210. board = ${common.board_4m}
  211. build_flags = ${common.build_flags_4m1m}
  212. [env:travis-git]
  213. platform = ${common.arduino_core_git}
  214. board = ${common.board_4m}
  215. build_flags = ${common.build_flags_4m1m}
  216. # ------------------------------------------------------------------------------
  217. # DEVELOPMENT BOARDS
  218. # ------------------------------------------------------------------------------
  219. [env:wemos-d1mini]
  220. board = d1_mini
  221. build_flags = ${common.build_flags_4m1m} -DWEMOS_D1_MINI -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  222. [env:wemos-d1mini-relayshield]
  223. board = ${common.board_4m}
  224. build_flags = ${common.build_flags_4m1m} -DWEMOS_D1_MINI_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  225. [env:wemos-d1mini-relayshield-ssl]
  226. platform = ${common.platform_latest}
  227. board = ${common.board_4m}
  228. build_flags = ${common.build_flags_4m1m} -DWEMOS_D1_MINI_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH -DASYNC_TCP_SSL_ENABLED=1
  229. [env:nodemcu-lolin]
  230. board = ${common.board_4m}
  231. build_flags = ${common.build_flags_4m1m} -DNODEMCU_LOLIN -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  232. [env:nodemcu-lolin-latest]
  233. platform = ${common.platform_latest}
  234. board = ${common.board_4m}
  235. build_flags = ${common.build_flags_4m1m} -DNODEMCU_LOLIN -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  236. [env:nodemcu-lolin-ssl]
  237. platform = ${common.platform_latest}
  238. board = ${common.board_4m}
  239. build_flags =
  240. ${common.build_flags_4m1m}
  241. -DDEBUG_FAUXMO=Serial
  242. -DASYNC_TCP_SSL_ENABLED=1
  243. src_build_flags =
  244. -DNODEMCU_LOLIN -DNOWSAUTH
  245. [env:nodemcu-lolin-secure-client]
  246. platform = ${common.platform_latest}
  247. board = ${common.board_4m}
  248. board_build.f_cpu = 160000000
  249. build_flags =
  250. ${common.build_flags_4m1m}
  251. -DDEBUG_FAUXMO=Serial
  252. src_build_flags =
  253. -DNODEMCU_LOLIN -DNOWSAUTH
  254. -DSECURE_CLIENT=SECURE_CLIENT_BEARSSL
  255. -DMQTT_LIBRARY=MQTT_LIBRARY_ARDUINOMQTT
  256. -DOTA_CLIENT=OTA_CLIENT_HTTPUPDATE
  257. # ------------------------------------------------------------------------------
  258. # SPECIFIC BOARDS
  259. # ------------------------------------------------------------------------------
  260. [env:tinkerman-espurna-h06]
  261. board = ${common.board_4m}
  262. build_flags = ${common.build_flags_4m1m} -DTINKERMAN_ESPURNA_H06
  263. [env:tinkerman-espurna-h08]
  264. board = ${common.board_4m}
  265. build_flags = ${common.build_flags_4m1m} -DTINKERMAN_ESPURNA_H08
  266. [env:tinkerman-espurna-switch]
  267. board = ${common.board_4m}
  268. build_flags = ${common.build_flags_4m1m} -DTINKERMAN_ESPURNA_SWITCH
  269. [env:wemos-d1-tarpunashield]
  270. board = ${common.board_4m}
  271. build_flags = ${common.build_flags_4m1m} -DWEMOS_D1_TARPUNA_SHIELD
  272. [env:tinkerman-rfm69gw]
  273. board = esp12e
  274. build_flags = ${common.build_flags_4m1m} -DTINKERMAN_RFM69GW -DNOWSAUTH
  275. [env:nodemcu-pzem004t]
  276. board = ${common.board_4m}
  277. build_flags = ${common.build_flags_4m1m} -DNODEMCU_BASIC -DDEBUG_SERIAL_SUPPORT=0 -DPZEM004T_SUPPORT=1 -DDISABLE_POSTMORTEM_STACKDUMP
  278. [env:foxel-lightfox-dual]
  279. board = ${common.board_1m}
  280. build_flags = ${common.build_flags_1m0m} -DFOXEL_LIGHTFOX_DUAL -DDISABLE_POSTMORTEM_STACKDUMP
  281. # ------------------------------------------------------------------------------
  282. [env:itead-sonoff-basic]
  283. board = ${common.board_1m}
  284. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_BASIC
  285. [env:itead-sonoff-basic-dht]
  286. board = ${common.board_1m}
  287. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_BASIC -DDHT_SUPPORT=1
  288. [env:itead-sonoff-basic-r2-dht]
  289. board = ${common.board_1m}
  290. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_BASIC -DDHT_SUPPORT=1 -DDHT_PIN=2
  291. [env:itead-sonoff-basic-dallas]
  292. board = ${common.board_1m}
  293. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_BASIC -DDALLAS_SUPPORT=1
  294. [env:itead-sonoff-basic-r2-dallas]
  295. board = ${common.board_1m}
  296. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_BASIC -DDALLAS_SUPPORT=1 -DDALLAS_PIN=2
  297. [env:itead-sonoff-rf]
  298. board = ${common.board_1m}
  299. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_RF
  300. [env:itead-sonoff-mini]
  301. board = ${common.board_1m}
  302. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_MINI
  303. [env:itead-sonoff-th]
  304. board = ${common.board_1m}
  305. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_TH
  306. [env:itead-sonoff-pow]
  307. board = ${common.board_1m}
  308. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_POW
  309. [env:itead-sonoff-pow-r2]
  310. board = ${common.board_1m}
  311. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_POW_R2 -DDISABLE_POSTMORTEM_STACKDUMP
  312. [env:itead-sonoff-dual]
  313. board = ${common.board_1m}
  314. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_DUAL -DDISABLE_POSTMORTEM_STACKDUMP
  315. [env:itead-sonoff-dual-r2]
  316. board = ${common.board_1m}
  317. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_DUAL_R2
  318. [env:itead-sonoff-4ch]
  319. board = ${common.board_1m}
  320. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_4CH
  321. [env:itead-sonoff-4ch-pro]
  322. board = ${common.board_1m}
  323. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_4CH_PRO
  324. [env:itead-sonoff-touch]
  325. board = ${common.board_1m}
  326. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_TOUCH
  327. [env:itead-sonoff-b1]
  328. board = ${common.board_1m}
  329. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_B1
  330. [env:itead-sonoff-t1-1ch]
  331. board = ${common.board_1m}
  332. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_T1_1CH
  333. [env:itead-sonoff-t1-2ch]
  334. board = ${common.board_1m}
  335. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_T1_2CH
  336. [env:itead-sonoff-t1-3ch]
  337. board = ${common.board_1m}
  338. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_T1_3CH
  339. [env:itead-sonoff-led]
  340. board = ${common.board_1m}
  341. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_LED
  342. [env:itead-sonoff-rfbridge]
  343. board = ${common.board_1m}
  344. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_RFBRIDGE -DDISABLE_POSTMORTEM_STACKDUMP
  345. [env:itead-sonoff-rfbridge-direct]
  346. board = ${common.board_1m}
  347. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_RFBRIDGE -DRFB_DIRECT
  348. # ------------------------------------------------------------------------------
  349. [env:itead-slampher]
  350. board = ${common.board_1m}
  351. build_flags = ${common.build_flags_1m0m} -DITEAD_SLAMPHER
  352. [env:itead-s20]
  353. board = ${common.board_1m}
  354. build_flags = ${common.build_flags_1m0m} -DITEAD_S20
  355. [env:itead-1ch-inching]
  356. board = ${common.board_1m}
  357. build_flags = ${common.build_flags_1m0m} -DITEAD_1CH_INCHING
  358. [env:itead-motor]
  359. board = ${common.board_1m}
  360. build_flags = ${common.build_flags_1m0m} -DITEAD_MOTOR
  361. [env:itead-sonoff-sv]
  362. board = ${common.board_1m}
  363. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_SV
  364. [env:itead-sonoff-s31]
  365. board = ${common.board_1m}
  366. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_S31 -DDISABLE_POSTMORTEM_STACKDUMP
  367. [env:itead-sonoff-s31-lite]
  368. board = ${common.board_1m}
  369. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_S31_LITE
  370. [env:itead-sonoff-ifan02]
  371. board = ${common.board_1m}
  372. build_flags = ${common.build_flags_1m0m} -DITEAD_SONOFF_IFAN02
  373. # ------------------------------------------------------------------------------
  374. [env:electrodragon-wifi-iot]
  375. board = ${common.board_4m}
  376. build_flags = ${common.build_flags_4m1m} -DELECTRODRAGON_WIFI_IOT -DDHT_SUPPORT=1
  377. [env:workchoice-ecoplug]
  378. board = ${common.board_1m}
  379. build_flags = ${common.build_flags_1m0m} -DWORKCHOICE_ECOPLUG
  380. [env:jangoe-wifi-relay-nc]
  381. board = ${common.board_4m}
  382. build_flags = ${common.build_flags_4m1m} -DJANGOE_WIFI_RELAY_NC
  383. [env:jangoe-wifi-relay-no]
  384. board = ${common.board_4m}
  385. build_flags = ${common.build_flags_4m1m} -DJANGOE_WIFI_RELAY_NO
  386. [env:openenergymonitor-mqtt-relay]
  387. board = ${common.board_4m}
  388. build_flags = ${common.build_flags_4m1m} -DOPENENERGYMONITOR_MQTT_RELAY -DDALLAS_SUPPORT=1
  389. [env:jorgegarcia-wifi-relays]
  390. board = ${common.board_1m}
  391. build_flags = ${common.build_flags_1m0m} -DJORGEGARCIA_WIFI_RELAYS
  392. [env:aithinker-ai-light]
  393. board = ${common.board_1m}
  394. build_flags = ${common.build_flags_1m0m} -DAITHINKER_AI_LIGHT
  395. [env:lyasi-rgb-light]
  396. board = ${common.board_1m}
  397. build_flags = ${common.build_flags_1m0m} -DLYASI_LIGHT
  398. [env:magichome-led-controller]
  399. board = ${common.board_1m}
  400. build_flags = ${common.build_flags_1m0m} -DMAGICHOME_LED_CONTROLLER
  401. [env:magichome-led-controller-20]
  402. board = ${common.board_1m}
  403. build_flags = ${common.build_flags_1m0m} -DMAGICHOME_LED_CONTROLLER_20
  404. [env:magichome-zj-wfmn-a-11]
  405. board = ${common.board_1m}
  406. build_flags = ${common.build_flags_1m0m} -DMAGICHOME_ZJ_WFMN_A_11
  407. [env:magichome-zj-wfmn-b-11]
  408. board = ${common.board_1m}
  409. build_flags = ${common.build_flags_1m0m} -DMAGICHOME_ZJ_WFMN_B_11
  410. [env:magichome-zj-espm-5ch-b-13]
  411. board = ${common.board_1m}
  412. build_flags = ${common.build_flags_1m0m} -DMAGICHOME_ZJ_ESPM_5CH_B_13
  413. [env:magichome-zj-lb-rgbww-l]
  414. board = ${common.board_1m}
  415. build_flags = ${common.build_flags_1m0m} -DMAGICHOME_ZJ_LB_RGBWW_L
  416. [env:magichome-zj-wfmn-c-11]
  417. board = ${common.board_1m}
  418. build_flags = ${common.build_flags_1m0m} -DMAGICHOME_ZJ_WFMN_C_11
  419. [env:huacanxing-h801]
  420. board = ${common.board_1m}
  421. build_flags = ${common.build_flags_1m0m} -DHUACANXING_H801
  422. [env:huacanxing-h802]
  423. board = ${common.board_1m}
  424. build_flags = ${common.build_flags_1m0m} -DHUACANXING_H802
  425. [env:arilux-al-lc01]
  426. board = ${common.board_1m}
  427. build_flags = ${common.build_flags_1m0m} -DARILUX_AL_LC01
  428. [env:arilux-al-lc02]
  429. board = ${common.board_1m}
  430. build_flags = ${common.build_flags_1m0m} -DARILUX_AL_LC02
  431. [env:arilux-al-lc02-v14]
  432. board = ${common.board_1m}
  433. build_flags = ${common.build_flags_1m0m} -DARILUX_AL_LC02_V14
  434. [env:arilux-al-lc06]
  435. board = ${common.board_1m}
  436. build_flags = ${common.build_flags_1m0m} -DARILUX_AL_LC06
  437. [env:arilux-al-lc11]
  438. board = ${common.board_1m}
  439. build_flags = ${common.build_flags_1m0m} -DARILUX_AL_LC11
  440. [env:arilux-e27]
  441. board = ${common.board_1m}
  442. build_flags = ${common.build_flags_1m0m} -DARILUX_E27
  443. [env:itead-bnsz01]
  444. board = ${common.board_1m}
  445. build_flags = ${common.build_flags_1m0m} -DITEAD_BNSZ01
  446. [env:wion-50055]
  447. board = ${common.board_1m}
  448. build_flags = ${common.build_flags_1m0m} -DWION_50055
  449. [env:exs-wifi-relay-v31]
  450. board = ${common.board_4m}
  451. build_flags = ${common.build_flags_4m1m} -DEXS_WIFI_RELAY_V31
  452. [env:exs-wifi-relay-v50]
  453. board = ${common.board_4m}
  454. build_flags = ${common.build_flags_4m1m} -DEXS_WIFI_RELAY_V50
  455. [env:wemos-v9261f]
  456. board = ${common.board_4m}
  457. build_flags = ${common.build_flags_4m1m} -DGENERIC_V9261F
  458. [env:esp01-v9261f]
  459. board = ${common.board_1m}
  460. build_flags = ${common.build_flags_1m0m} -DGENERIC_V9261F
  461. [env:wemos-ech1560]
  462. board = ${common.board_4m}
  463. build_flags = ${common.build_flags_4m1m} -DGENERIC_ECH1560
  464. [env:esp01-ech1560]
  465. board = ${common.board_1m}
  466. build_flags = ${common.build_flags_1m0m} -DGENERIC_ECH1560
  467. [env:mancavemade-esplive]
  468. board = ${common.board_4m}
  469. build_flags = ${common.build_flags_4m1m} -DMANCAVEMADE_ESPLIVE
  470. [env:tuya-generic-dimmer]
  471. board = ${common.board_1m}
  472. build_flags = ${common.build_flags_1m0m} -DTUYA_GENERIC_DIMMER -DDEBUG_SERIAL_SUPPORT=0 -DDISABLE_POSTMORTEM_STACKDUMP
  473. [env:intermittech-quinled]
  474. board = ${common.board_1m}
  475. build_flags = ${common.build_flags_1m0m} -DINTERMITTECH_QUINLED
  476. [env:xenon-sm-pw702u]
  477. board = ${common.board_1m}
  478. build_flags = ${common.build_flags_1m0m} -DXENON_SM_PW702U
  479. [env:iselector-sm-pw702]
  480. board = ${common.board_1m}
  481. build_flags = ${common.build_flags_1m0m} -DISELECTOR_SM_PW702
  482. [env:authometion-lyt8266]
  483. board = ${common.board_1m}
  484. build_flags = ${common.build_flags_1m0m} -DAUTHOMETION_LYT8266
  485. [env:kmc-70011]
  486. board = ${common.board_1m}
  487. build_flags = ${common.build_flags_1m0m} -DKMC_70011
  488. [env:yjzk-switch-1ch]
  489. board = ${common.board_1m}
  490. build_flags = ${common.build_flags_1m0m} -DYJZK_SWITCH_1CH
  491. [env:yjzk-switch-2ch]
  492. board = ${common.board_1m}
  493. build_flags = ${common.build_flags_1m0m} -DYJZK_SWITCH_2CH
  494. [env:yjzk-switch-3ch]
  495. board = ${common.board_1m}
  496. build_flags = ${common.build_flags_1m0m} -DYJZK_SWITCH_3CH
  497. [env:generic-8ch]
  498. board = ${common.board_4m}
  499. build_flags = ${common.build_flags_4m1m} -DGENERIC_8CH
  500. [env:gizwits-witty-cloud]
  501. board = ${common.board_4m}
  502. build_flags = ${common.build_flags_4m1m} -DGIZWITS_WITTY_CLOUD
  503. [env:euromate-wifi-stecker-shuko]
  504. board = ${common.board_1m}
  505. build_flags = ${common.build_flags_1m0m} -DEUROMATE_WIFI_STECKER_SCHUKO
  506. [env:euromate-wifi-stecker-shuko-v2]
  507. board = ${common.board_2m}
  508. build_flags = ${common.build_flags_2m1m} -DEUROMATE_WIFI_STECKER_SCHUKO_V2
  509. [env:tonbux-powerstrip02]
  510. board = ${common.board_1m}
  511. build_flags = ${common.build_flags_1m0m} -DTONBUX_POWERSTRIP02
  512. [env:lingan-swa1]
  513. board = ${common.board_1m}
  514. build_flags = ${common.build_flags_1m0m} -DLINGAN_SWA1
  515. [env:stm-relay]
  516. board = ${common.board_1m}
  517. build_flags = ${common.build_flags_1m0m} -DSTM_RELAY -DDISABLE_POSTMORTEM_STACKDUMP
  518. [env:heygo-hy02]
  519. board = ${common.board_1m}
  520. build_flags = ${common.build_flags_1m0m} -DHEYGO_HY02
  521. [env:maxcio-wus002s]
  522. board = ${common.board_1m}
  523. build_flags = ${common.build_flags_1m0m} -DMAXCIO_WUS002S
  524. [env:maxcio-wde004]
  525. board = ${common.board_1m}
  526. build_flags = ${common.build_flags_1m0m} -DMAXCIO_WDE004
  527. [env:yidian-xsssa05]
  528. board = ${common.board_1m}
  529. build_flags = ${common.build_flags_1m0m} -DYIDIAN_XSSSA05
  530. [env:oukitel-p1]
  531. board = ${common.board_1m}
  532. build_flags = ${common.build_flags_1m0m} -DOUKITEL_P1
  533. [env:tonbux-xsssa01]
  534. board = ${common.board_1m}
  535. build_flags = ${common.build_flags_4m1m} -DTONBUX_XSSSA01
  536. [env:tonbux-xsssa06]
  537. board = ${common.board_1m}
  538. build_flags = ${common.build_flags_1m0m} -DTONBUX_XSSSA06
  539. [env:green-esp8266relay]
  540. board = ${common.board_4m}
  541. build_flags = ${common.build_flags_4m1m} -DGREEN_ESP8266RELAY
  542. [env:ike-espike]
  543. board = ${common.board_4m}
  544. build_flags = ${common.build_flags_4m1m} -DIKE_ESPIKE
  545. [env:arniex-swifitch]
  546. board = ${common.board_4m}
  547. build_flags = ${common.build_flags_4m1m} -DARNIEX_SWIFITCH
  548. [env:zhilde-eu44-w]
  549. board = ${common.board_1m}
  550. build_flags = ${common.build_flags_1m0m} -DZHILDE_EU44_W
  551. [env:luani-hvio]
  552. board = ${common.board_1m}
  553. build_flags = ${common.build_flags_1m0m} -DLUANI_HVIO
  554. [env:avatto-power-plug-wifi]
  555. board = ${common.board_1m}
  556. build_flags = ${common.build_flags_1m0m} -DAVATTO_NAS_WR01W
  557. [env:neo-coolcam-power-plug-wifi]
  558. board = ${common.board_1m}
  559. build_flags = ${common.build_flags_1m0m} -DNEO_COOLCAM_NAS_WR01W
  560. [env:deltaco-sh-p01]
  561. board = ${common.board_1m}
  562. build_flags = ${common.build_flags_1m0m} -DDELTACO_SH_P01
  563. [env:deltaco-sh-p03usb]
  564. board = ${common.board_1m}
  565. build_flags = ${common.build_flags_1m0m} -DDELTACO_SH_P03USB
  566. [env:deltaco-sh-lexxw]
  567. board = ${common.board_1m}
  568. build_flags = ${common.build_flags_1m0m} -DDELTACO_SH_LEXXW
  569. [env:deltaco-sh-lexxrgb]
  570. board = ${common.board_1m}
  571. build_flags = ${common.build_flags_1m0m} -DDELTACO_SH_LEXXRGB
  572. [env:estink-wifi-power-strip]
  573. board = ${common.board_1m}
  574. build_flags = ${common.build_flags_1m0m} -DFORNORM_ZLD_34EU
  575. [env:iwoole-led-table-lamp]
  576. board = ${common.board_1m}
  577. build_flags = ${common.build_flags_1m0m} -DIWOOLE_LED_TABLE_LAMP
  578. [env:lombex-lux-nova2-tunable-white]
  579. board = ${common.board_1m}
  580. build_flags = ${common.build_flags_1m0m} -DLOMBEX_LUX_NOVA2_TUNABLE_WHITE
  581. [env:lombex-lux-nova2-white-color]
  582. board = ${common.board_1m}
  583. build_flags = ${common.build_flags_1m0m} -DLOMBEX_LUX_NOVA2_WHITE_COLOR
  584. # ------------------------------------------------------------------------------
  585. # GENERIC / DEVELOPMENT BOARDS
  586. # ------------------------------------------------------------------------------
  587. [env:generic-esp01s-relay-40]
  588. board = ${common.board_1m}
  589. build_flags = ${common.build_flags_1m0m} -DGENERIC_ESP01S_RELAY_V40
  590. [env:generic-esp01s-relay-40-inv]
  591. board = ${common.board_1m}
  592. build_flags = ${common.build_flags_1m0m} -DGENERIC_ESP01S_RELAY_V40 -DRELAY1_TYPE=1
  593. [env:generic-esp01s-rgbled-10]
  594. board = ${common.board_1m}
  595. build_flags = ${common.build_flags_1m0m} -DGENERIC_ESP01S_RGBLED_V10
  596. [env:generic-esp01s-dht11-10]
  597. board = ${common.board_1m}
  598. build_flags = ${common.build_flags_1m0m} -DGENERIC_ESP01S_DHT11_V10
  599. [env:generic-esp01s-ds18b20-10]
  600. board = ${common.board_1m}
  601. build_flags = ${common.build_flags_1m0m} -DGENERIC_ESP01S_DS18B20_V10
  602. [env:heltec-touch-relay]
  603. board = ${common.board_1m}
  604. build_flags = ${common.build_flags_1m0m} -DHELTEC_TOUCHRELAY
  605. [env:allnet-4duino-iot-wlan-relais]
  606. board = ${common.board_4m}
  607. build_flags = ${common.build_flags_4m1m} -DALLNET_4DUINO_IOT_WLAN_RELAIS
  608. [env:tonbux-mosquito-killer]
  609. board = ${common.board_1m}
  610. build_flags = ${common.build_flags_1m0m} -DTONBUX_MOSQUITO_KILLER
  611. [env:pilotak-esp-din-v1]
  612. board = ${common.board_1m}
  613. build_flags = ${common.build_flags_1m0m} -DPILOTAK_ESP_DIN_V1
  614. [env:nodemcu-geiger]
  615. board = ${common.board_4m}
  616. build_flags = ${common.build_flags_4m1m} -DNODEMCU_BASIC -DGEIGER_SUPPORT=1 -DEVENTS_SUPPORT=0 -DINFLUXDB_SUPPORT=1 -DALEXA_SUPPORT=0 -DALEXA_ENABLED=0
  617. [env:blitzwolf-bwshpx]
  618. board = ${common.board_1m}
  619. build_flags = ${common.build_flags_1m0m} -DBLITZWOLF_BWSHPX
  620. [env:blitzwolf-bwshpx-v23]
  621. board = ${common.board_1m}
  622. build_flags = ${common.build_flags_1m0m} -DBLITZWOLF_BWSHPX_V23
  623. [env:blitzwolf-bwshp5]
  624. board = ${common.board_1m}
  625. build_flags = ${common.build_flags_1m0m} -DBLITZWOLF_BWSHP5
  626. [env:teckin-sp21]
  627. board = ${common.board_1m}
  628. build_flags = ${common.build_flags_1m0m} -DTECKIN_SP21
  629. [env:teckin-sp22-v14]
  630. board = ${common.board_1m}
  631. build_flags = ${common.build_flags_1m0m} -DTECKIN_SP22_V14
  632. [env:gosund-ws1]
  633. board = ${common.board_1m}
  634. build_flags = ${common.build_flags_1m0m} -DGOSUND_WS1
  635. [env:digoo-nx-sp202]
  636. board = ${common.board_1m}
  637. build_flags = ${common.build_flags_1m0m} -DDIGOO_NX_SP202
  638. [env:tflag-nx-smx00]
  639. board = ${common.board_1m}
  640. build_flags = ${common.build_flags_1m0m} -DTFLAG_NX_SMX00
  641. [env:homecube-16a]
  642. board = ${common.board_1m}
  643. build_flags = ${common.build_flags_1m0m} -DHOMECUBE_16A
  644. [env:bh-onofre]
  645. board = ${common.board_4m}
  646. build_flags = ${common.build_flags_4m1m} -DBH_ONOFRE
  647. [env:generic-ag-l4]
  648. board = ${common.board_1m}
  649. build_flags = ${common.build_flags_1m0m} -DGENERIC_AG_L4
  650. [env:lohas-e27-9w]
  651. board = ${common.board_1m}
  652. build_flags = ${common.build_flags_1m0m} -DLOHAS_E27_9W
  653. [env:lohas-e26-a19]
  654. board = ${common.board_1m}
  655. build_flags = ${common.build_flags_1m0m} -DLOHAS_E26_A19
  656. [env:teckin-sb53]
  657. board = ${common.board_1m}
  658. build_flags = ${common.build_flags_1m0m} -DTECKIN_SB53
  659. [env:allterco-shelly1]
  660. board = ${common.board_2m}
  661. build_flags = ${common.build_flags_2m1m} -DALLTERCO_SHELLY1
  662. [env:allterco-shelly2]
  663. board = ${common.board_2m}
  664. build_flags = ${common.build_flags_2m1m} -DALLTERCO_SHELLY2
  665. [env:allterco-shelly1pm]
  666. board = ${common.board_2m}
  667. build_flags = ${common.build_flags_2m1m} -DALLTERCO_SHELLY1PM
  668. [env:allterco-shelly25]
  669. board = ${common.board_2m}
  670. build_flags = ${common.build_flags_2m1m} -DALLTERCO_SHELLY25
  671. [env:xiaomi-smart-desk-lamp]
  672. board = ${common.board_1m}
  673. build_flags = ${common.build_flags_1m0m} -DXIAOMI_SMART_DESK_LAMP
  674. [env:phyx-esp12-rgb]
  675. board = ${common.board_1m}
  676. build_flags = ${common.build_flags_1m0m} -DPHYX_ESP12_RGB
  677. [env:bestek-mrj1011]
  678. board = ${common.board_1m}
  679. build_flags = ${common.build_flags_1m0m} -DBESTEK_MRJ1011
  680. [env:gblife-rgbw-socket]
  681. board = ${common.board_1m}
  682. build_flags = ${common.build_flags_1m0m} -DGBLIFE_RGBW_SOCKET
  683. [env:smartlife-mini-smart-socket]
  684. board = ${common.board_1m}
  685. build_flags = ${common.build_flags_1m0m} -DSMARTLIFE_MINI_SMART_SOCKET
  686. [env:hama-wifi-steckdose-00176533]
  687. board = ${common.board_1m}
  688. build_flags = ${common.build_flags_1m0m} -DHAMA_WIFI_STECKDOSE_00176533
  689. [env:teckin-sp20]
  690. board = ${common.board_1m}
  691. build_flags = ${common.build_flags_1m0m} -DTECKIN_SP20
  692. [env:litesun-la-wf3]
  693. board = ${common.board_1m}
  694. build_flags = ${common.build_flags_1m0m} -DLITESUN_LA_WF3
  695. [env:generic-gu10]
  696. board = ${common.board_1m}
  697. build_flags = ${common.build_flags_1m0m} -DGENERIC_GU10
  698. [env:generic-e14]
  699. board = ${common.board_1m}
  700. build_flags = ${common.build_flags_1m0m} -DGENERIC_E14
  701. [env:nexete-a19]
  702. board = ${common.board_1m}
  703. build_flags = ${common.build_flags_1m0m} -DNEXETE_A19
  704. [env:psh-wifi-plug]
  705. board = ${common.board_1m}
  706. build_flags = ${common.build_flags_1m0m} -DPSH_WIFI_PLUG
  707. [env:psh-rgbw-controller]
  708. board = ${common.board_4m}
  709. build_flags = ${common.build_flags_4m1m} -DPSH_RGBW_CONTROLLER
  710. [env:psh-wifi-sensor]
  711. board = ${common.board_4m}
  712. build_flags = ${common.build_flags_4m1m} -DPSH_WIFI_SENSOR
  713. [env:jinvoo-valve-sm-aw713]
  714. board = ${common.board_1m}
  715. build_flags = ${common.build_flags_1m0m} -DJINVOO_VALVE_SM_AW713
  716. [env:etekcity-esw01-usa]
  717. board = ${common.board_1m}
  718. build_flags = ${common.build_flags_1m0m} -DETEKCITY_ESW01_USA
  719. [env:fs-uap1]
  720. board = ${common.board_4m}
  721. build_flags = ${common.build_flags_4m1m} -DFS_UAP1
  722. [env:muvit-io-miobulb001]
  723. board = ${common.board_1m}
  724. build_flags = ${common.build_flags_1m0m} -DMUVIT_IO_MIOBULB001
  725. [env:hykker-smart-home-power-plug]
  726. board = ${common.board_1m}
  727. build_flags = ${common.build_flags_1m0m} -DHYKKER_SMART_HOME_POWER_PLUG
  728. [env:kogan-smarter-home-plug-w-pow]
  729. board = ${common.board_1m}
  730. build_flags = ${common.build_flags_1m0m} -DKOGAN_SMARTER_HOME_PLUG_W_POW
  731. [env:lsc-smart-led-light-strip]
  732. board = ${common.board_1m}
  733. build_flags = ${common.build_flags_1m0m} -DLSC_SMART_LED_LIGHT_STRIP
  734. [env:linksprite-linknode-r4]
  735. board = ${common.board_4m}
  736. build_flags = ${common.build_flags_4m1m} -DLINKSPRITE_LINKNODE_R4
  737. [env:ehomediy-wt02]
  738. board = ${common.board_1m}
  739. build_flags = ${common.build_flags_1m0m} -DEHOMEDIY_WT02
  740. [env:ehomediy-wt03]
  741. board = ${common.board_1m}
  742. build_flags = ${common.build_flags_1m0m} -DEHOMEDIY_WT03