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.

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