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.

1066 lines
29 KiB

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