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.

1076 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/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. https://github.com/1technophile/rc-switch#11402652
  134. https://github.com/LowPowerLab/RFM69#7db941d3
  135. https://github.com/mcspr/rpnlib.git#0.24.1
  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. https://github.com/BoschSensortec/BSEC-Arduino-library.git#c5503e0
  143. adafruit/Adafruit NeoPixel@^1.7.0
  144. # ------------------------------------------------------------------------------
  145. # COMMON ENVIRONMENT SETTINGS:
  146. # ------------------------------------------------------------------------------
  147. [env]
  148. platform = ${common.platform}
  149. framework = arduino
  150. board_build.flash_mode = dout
  151. build_flags = ${common.build_flags}
  152. monitor_speed = 115200
  153. upload_speed = 115200
  154. extra_scripts = pre:scripts/pio_pre.py, scripts/pio_main.py
  155. lib_extra_dirs =
  156. ${common.shared_libdeps_dir}
  157. # ------------------------------------------------------------------------------
  158. # LIBRARIES: required dependencies
  159. # Please note that we don't always use the latest version of a library.
  160. # ------------------------------------------------------------------------------
  161. lib_deps =
  162. ${common.lib_deps}
  163. lib_ignore =
  164. AsyncTCP
  165. Brzo I2C
  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. [env:esp8266-1m-base]
  176. board = ${common.board_1m}
  177. board_build.ldscript = ${common.ldscript_1m}
  178. [env:esp8266-2m-base]
  179. board = ${common.board_2m}
  180. board_build.ldscript = ${common.ldscript_2m}
  181. [env:esp8266-4m-base]
  182. board = ${common.board_4m}
  183. board_build.ldscript = ${common.ldscript_4m}
  184. [env:esp8266-1m-latest-base]
  185. platform = ${common.platform_latest}
  186. board = ${common.board_1m}
  187. board_build.ldscript = ${common.ldscript_1m}
  188. [env:esp8266-2m-latest-base]
  189. platform = ${common.platform_latest}
  190. board = ${common.board_2m}
  191. board_build.ldscript = ${common.ldscript_2m}
  192. [env:esp8266-4m-latest-base]
  193. platform = ${common.platform_latest}
  194. board = ${common.board_4m}
  195. board_build.ldscript = ${common.ldscript_4m}
  196. [env:esp8266-1m-git-base]
  197. platform = ${common.platform_latest}
  198. board = ${common.board_1m}
  199. platform_packages =
  200. ${common.git_platform_packages}
  201. board_build.ldscript = ${common.ldscript_1m}
  202. [env:esp8266-2m-git-base]
  203. platform = ${common.platform_latest}
  204. board = ${common.board_2m}
  205. platform_packages =
  206. ${common.git_platform_packages}
  207. board_build.ldscript = ${common.ldscript_2m}
  208. [env:esp8266-4m-git-base]
  209. platform = ${common.platform_latest}
  210. board = ${common.board_4m}
  211. platform_packages =
  212. ${common.git_platform_packages}
  213. board_build.ldscript = ${common.ldscript_4m}
  214. # ------------------------------------------------------------------------------
  215. # ESPURNA CORE BUILDS (2-step OTA)
  216. # ------------------------------------------------------------------------------
  217. [env:espurna-core-1MB]
  218. extends = env:esp8266-1m-base
  219. src_build_flags = -DESPURNA_CORE
  220. [env:espurna-core-2MB]
  221. extends = env:esp8266-2m-base
  222. src_build_flags = -DESPURNA_CORE
  223. [env:espurna-core-4MB]
  224. extends = env:esp8266-4m-base
  225. src_build_flags = -DESPURNA_CORE
  226. [env:espurna-core-smartconfig-1MB]
  227. extends = env:esp8266-1m-base
  228. src_build_flags = -DESPURNA_CORE
  229. build_flags = ${common.build_flags} -DJUSTWIFI_ENABLE_SMARTCONFIG=1
  230. [env:espurna-core-smartconfig-2MB]
  231. extends = env:esp8266-2m-base
  232. src_build_flags = -DESPURNA_CORE
  233. build_flags = ${common.build_flags} -DJUSTWIFI_ENABLE_SMARTCONFIG=1
  234. [env:espurna-core-smartconfig-4MB]
  235. extends = env:esp8266-4m-base
  236. src_build_flags = -DESPURNA_CORE
  237. build_flags = ${common.build_flags} -DJUSTWIFI_ENABLE_SMARTCONFIG=1
  238. [env:espurna-core-wps-1MB]
  239. extends = env:esp8266-1m-base
  240. src_build_flags = -DESPURNA_CORE
  241. build_flags = ${common.build_flags} -DJUSTWIFI_ENABLE_WPS=1
  242. [env:espurna-core-wps-2MB]
  243. extends = env:esp8266-2m-base
  244. src_build_flags = -DESPURNA_CORE
  245. build_flags = ${common.build_flags} -DJUSTWIFI_ENABLE_WPS=1
  246. [env:espurna-core-wps-4MB]
  247. extends = env:esp8266-4m-base
  248. src_build_flags = -DESPURNA_CORE
  249. build_flags = ${common.build_flags} -DJUSTWIFI_ENABLE_WPS=1
  250. # ------------------------------------------------------------------------------
  251. # ESPURNA CORE with WebUI
  252. # ------------------------------------------------------------------------------
  253. [env:espurna-core-webui-1MB]
  254. extends = env:esp8266-1m-base
  255. src_build_flags = -DESPURNA_CORE_WEBUI
  256. [env:espurna-core-webui-2MB]
  257. extends = env:esp8266-2m-base
  258. src_build_flags = -DESPURNA_CORE_WEBUI
  259. [env:espurna-core-webui-4MB]
  260. extends = env:esp8266-4m-base
  261. src_build_flags = -DESPURNA_CORE_WEBUI
  262. # ------------------------------------------------------------------------------
  263. # DEVELOPMENT BOARDS
  264. # ------------------------------------------------------------------------------
  265. [env:wemos-d1mini]
  266. extends = env:esp8266-4m-base
  267. board = d1_mini
  268. src_build_flags = -DWEMOS_D1_MINI -DNOWSAUTH
  269. [env:wemos-d1mini-relayshield]
  270. extends = env:esp8266-4m-base
  271. board = d1_mini
  272. src_build_flags = -DWEMOS_D1_MINI_RELAYSHIELD -DNOWSAUTH
  273. [env:nodemcu-lolin]
  274. extends = env:esp8266-4m-base
  275. src_build_flags = -DNODEMCU_LOLIN -DNOWSAUTH
  276. [env:nodemcu-lolin-secure-client-asynctcp]
  277. extends = env:esp8266-4m-base
  278. build_flags = ${common.build_flags} -DASYNC_TCP_SSL_ENABLED=1
  279. src_build_flags = -DNODEMCU_LOLIN -DNOWSAUTH
  280. [env:nodemcu-lolin-secure-client]
  281. extends = env:esp8266-4m-base
  282. board_build.f_cpu = 160000000
  283. src_build_flags =
  284. -DNODEMCU_LOLIN -DNOWSAUTH
  285. -DSECURE_CLIENT=SECURE_CLIENT_BEARSSL
  286. -DMQTT_LIBRARY=MQTT_LIBRARY_ARDUINOMQTT
  287. -DOTA_CLIENT=OTA_CLIENT_HTTPUPDATE
  288. # ------------------------------------------------------------------------------
  289. # SPECIFIC BOARDS
  290. # ------------------------------------------------------------------------------
  291. [env:tinkerman-espurna-h06]
  292. extends = env:esp8266-4m-base
  293. src_build_flags = -DTINKERMAN_ESPURNA_H06
  294. [env:tinkerman-espurna-h08]
  295. extends = env:esp8266-4m-base
  296. src_build_flags = -DTINKERMAN_ESPURNA_H08
  297. [env:tinkerman-espurna-switch]
  298. extends = env:esp8266-4m-base
  299. src_build_flags = -DTINKERMAN_ESPURNA_SWITCH
  300. [env:wemos-d1-tarpunashield]
  301. extends = env:esp8266-4m-base
  302. src_build_flags = -DWEMOS_D1_TARPUNA_SHIELD
  303. [env:tinkerman-rfm69gw]
  304. extends = env:esp8266-4m-base
  305. board = esp12e
  306. src_build_flags = -DTINKERMAN_RFM69GW -DNOWSAUTH
  307. [env:foxel-lightfox-dual]
  308. extends = env:esp8266-1m-base
  309. src_build_flags =
  310. -DFOXEL_LIGHTFOX_DUAL
  311. -DDISABLE_POSTMORTEM_STACKDUMP
  312. # ------------------------------------------------------------------------------
  313. # GENERIC / DEVELOPMENT BOARDS
  314. # ------------------------------------------------------------------------------
  315. [env:generic-esp01-512kb]
  316. extends = env:esp8266-512k-base
  317. src_build_flags = -DGENERIC_ESP01_512KB
  318. [env:generic-esp01s-relay-40]
  319. extends = env:esp8266-1m-base
  320. src_build_flags = -DGENERIC_ESP01S_RELAY_V40
  321. [env:generic-esp01s-relay-40-inv]
  322. extends = env:esp8266-1m-base
  323. src_build_flags = -DGENERIC_ESP01S_RELAY_V40 -DRELAY1_TYPE=RELAY_TYPE_INVERSE
  324. [env:generic-esp01s-rgbled-10]
  325. extends = env:esp8266-1m-base
  326. src_build_flags = -DGENERIC_ESP01S_RGBLED_V10
  327. [env:generic-esp01s-dht11-10]
  328. extends = env:esp8266-1m-base
  329. src_build_flags = -DGENERIC_ESP01S_DHT11_V10
  330. [env:generic-esp01s-ds18b20-10]
  331. extends = env:esp8266-1m-base
  332. src_build_flags = -DGENERIC_ESP01S_DS18B20_V10
  333. [env:generic-esp01s-pzem004t]
  334. extends = env:esp8266-1m-base
  335. src_build_flags = -DGENERIC_PZEM004T -DDISABLE_POSTMORTEM_STACKDUMP
  336. [env:generic-esp12e-pzem004t]
  337. extends = env:esp8266-4m-base
  338. src_build_flags = -DGENERIC_PZEM004T -DDISABLE_POSTMORTEM_STACKDUMP
  339. # ------------------------------------------------------------------------------
  340. # ITEAD SONOFF
  341. # ------------------------------------------------------------------------------
  342. [env:itead-sonoff-basic]
  343. extends = env:esp8266-1m-base
  344. src_build_flags = -DITEAD_SONOFF_BASIC
  345. [env:itead-sonoff-basic-dht]
  346. extends = env:esp8266-1m-base
  347. src_build_flags = -DITEAD_SONOFF_BASIC -DDHT_SUPPORT=1
  348. [env:itead-sonoff-basic-r2-dht]
  349. extends = env:esp8266-1m-base
  350. src_build_flags = -DITEAD_SONOFF_BASIC -DDHT_SUPPORT=1 -DDHT_PIN=2
  351. [env:itead-sonoff-basic-dallas]
  352. extends = env:esp8266-1m-base
  353. src_build_flags = -DITEAD_SONOFF_BASIC -DDALLAS_SUPPORT=1
  354. [env:itead-sonoff-basic-r2-dallas]
  355. extends = env:esp8266-1m-base
  356. src_build_flags = -DITEAD_SONOFF_BASIC -DDALLAS_SUPPORT=1 -DDALLAS_PIN=2
  357. [env:itead-sonoff-rf]
  358. extends = env:esp8266-1m-base
  359. src_build_flags = -DITEAD_SONOFF_RF
  360. [env:itead-sonoff-mini]
  361. extends = env:esp8266-1m-base
  362. src_build_flags = -DITEAD_SONOFF_MINI
  363. [env:itead-sonoff-th]
  364. extends = env:esp8266-1m-base
  365. src_build_flags = -DITEAD_SONOFF_TH
  366. [env:itead-sonoff-pow]
  367. extends = env:esp8266-1m-base
  368. src_build_flags = -DITEAD_SONOFF_POW
  369. [env:itead-sonoff-pow-r2]
  370. extends = env:esp8266-1m-base
  371. src_build_flags = -DITEAD_SONOFF_POW_R2 -DDISABLE_POSTMORTEM_STACKDUMP
  372. [env:itead-sonoff-dual]
  373. extends = env:esp8266-1m-base
  374. src_build_flags = -DITEAD_SONOFF_DUAL -DDISABLE_POSTMORTEM_STACKDUMP
  375. [env:itead-sonoff-dual-r2]
  376. extends = env:esp8266-1m-base
  377. src_build_flags = -DITEAD_SONOFF_DUAL_R2
  378. [env:itead-sonoff-4ch]
  379. extends = env:esp8266-1m-base
  380. src_build_flags = -DITEAD_SONOFF_4CH
  381. [env:itead-sonoff-4ch-pro]
  382. extends = env:esp8266-1m-base
  383. src_build_flags = -DITEAD_SONOFF_4CH_PRO
  384. [env:itead-sonoff-touch]
  385. extends = env:esp8266-1m-base
  386. src_build_flags = -DITEAD_SONOFF_TOUCH
  387. [env:itead-sonoff-b1]
  388. extends = env:esp8266-1m-base
  389. src_build_flags = -DITEAD_SONOFF_B1
  390. [env:itead-sonoff-t1-1ch]
  391. extends = env:esp8266-1m-base
  392. src_build_flags = -DITEAD_SONOFF_T1_1CH
  393. [env:itead-sonoff-t1-2ch]
  394. extends = env:esp8266-1m-base
  395. src_build_flags = -DITEAD_SONOFF_T1_2CH
  396. [env:itead-sonoff-t1-3ch]
  397. extends = env:esp8266-1m-base
  398. src_build_flags = -DITEAD_SONOFF_T1_3CH
  399. [env:itead-sonoff-led]
  400. extends = env:esp8266-1m-base
  401. src_build_flags = -DITEAD_SONOFF_LED
  402. [env:itead-sonoff-rfbridge]
  403. extends = env:esp8266-1m-base
  404. src_build_flags = -DITEAD_SONOFF_RFBRIDGE -DDISABLE_POSTMORTEM_STACKDUMP
  405. [env:itead-sonoff-rfbridge-direct]
  406. extends = env:esp8266-1m-base
  407. src_build_flags = -DITEAD_SONOFF_RFBRIDGE -DRFB_PROVIDER=RFB_PROVIDER_RCSWITCH
  408. [env:itead-slampher]
  409. extends = env:esp8266-1m-base
  410. src_build_flags = -DITEAD_SLAMPHER
  411. [env:itead-s20]
  412. extends = env:esp8266-1m-base
  413. src_build_flags = -DITEAD_S20
  414. [env:itead-1ch-inching]
  415. extends = env:esp8266-1m-base
  416. src_build_flags = -DITEAD_1CH_INCHING
  417. [env:itead-motor]
  418. extends = env:esp8266-1m-base
  419. src_build_flags = -DITEAD_MOTOR
  420. [env:itead-sonoff-sv]
  421. extends = env:esp8266-1m-base
  422. src_build_flags = -DITEAD_SONOFF_SV
  423. [env:itead-sonoff-s31]
  424. extends = env:esp8266-1m-base
  425. src_build_flags = -DITEAD_SONOFF_S31 -DDISABLE_POSTMORTEM_STACKDUMP
  426. [env:itead-sonoff-s31-lite]
  427. extends = env:esp8266-1m-base
  428. src_build_flags = -DITEAD_SONOFF_S31_LITE
  429. [env:itead-sonoff-ifan02]
  430. extends = env:esp8266-1m-base
  431. src_build_flags = -DITEAD_SONOFF_IFAN02
  432. # ------------------------------------------------------------------------------
  433. [env:electrodragon-wifi-iot]
  434. extends = env:esp8266-4m-base
  435. src_build_flags = -DELECTRODRAGON_WIFI_IOT -DDHT_SUPPORT=1
  436. [env:workchoice-ecoplug]
  437. extends = env:esp8266-1m-base
  438. src_build_flags = -DWORKCHOICE_ECOPLUG
  439. [env:jangoe-wifi-relay-nc]
  440. extends = env:esp8266-4m-base
  441. src_build_flags = -DJANGOE_WIFI_RELAY_NC
  442. [env:jangoe-wifi-relay-no]
  443. extends = env:esp8266-4m-base
  444. src_build_flags = -DJANGOE_WIFI_RELAY_NO
  445. [env:openenergymonitor-mqtt-relay]
  446. extends = env:esp8266-4m-base
  447. src_build_flags = -DOPENENERGYMONITOR_MQTT_RELAY -DDALLAS_SUPPORT=1
  448. [env:jorgegarcia-wifi-relays]
  449. extends = env:esp8266-1m-base
  450. src_build_flags = -DJORGEGARCIA_WIFI_RELAYS
  451. [env:aithinker-ai-light]
  452. extends = env:esp8266-1m-base
  453. src_build_flags = -DAITHINKER_AI_LIGHT
  454. [env:lyasi-rgb-light]
  455. extends = env:esp8266-1m-base
  456. src_build_flags = -DLYASI_LIGHT
  457. [env:magichome-led-controller]
  458. extends = env:esp8266-1m-base
  459. src_build_flags = -DMAGICHOME_LED_CONTROLLER
  460. [env:magichome-led-controller-20]
  461. extends = env:esp8266-1m-base
  462. src_build_flags = -DMAGICHOME_LED_CONTROLLER_20
  463. [env:magichome-zj-wfmn-a-11]
  464. extends = env:esp8266-1m-base
  465. src_build_flags = -DMAGICHOME_ZJ_WFMN_A_11
  466. [env:magichome-zj-wfmn-b-11]
  467. extends = env:esp8266-1m-base
  468. src_build_flags = -DMAGICHOME_ZJ_WFMN_B_11
  469. [env:magichome-zj-espm-5ch-b-13]
  470. extends = env:esp8266-1m-base
  471. src_build_flags = -DMAGICHOME_ZJ_ESPM_5CH_B_13
  472. [env:magichome-zj-lb-rgbww-l]
  473. extends = env:esp8266-1m-base
  474. src_build_flags = -DMAGICHOME_ZJ_LB_RGBWW_L
  475. [env:magichome-zj-wfmn-c-11]
  476. extends = env:esp8266-1m-base
  477. src_build_flags = -DMAGICHOME_ZJ_WFMN_C_11
  478. [env:huacanxing-h801]
  479. extends = env:esp8266-1m-base
  480. src_build_flags = -DHUACANXING_H801
  481. [env:huacanxing-h802]
  482. extends = env:esp8266-1m-base
  483. src_build_flags = -DHUACANXING_H802
  484. [env:arilux-al-lc01]
  485. extends = env:esp8266-1m-base
  486. src_build_flags = -DARILUX_AL_LC01
  487. [env:arilux-al-lc02]
  488. extends = env:esp8266-1m-base
  489. src_build_flags = -DARILUX_AL_LC02
  490. [env:arilux-al-lc02-v14]
  491. extends = env:esp8266-1m-base
  492. src_build_flags = -DARILUX_AL_LC02_V14
  493. [env:arilux-al-lc06]
  494. extends = env:esp8266-1m-base
  495. src_build_flags = -DARILUX_AL_LC06
  496. [env:arilux-al-lc11]
  497. extends = env:esp8266-1m-base
  498. src_build_flags = -DARILUX_AL_LC11
  499. [env:arilux-e27]
  500. extends = env:esp8266-1m-base
  501. src_build_flags = -DARILUX_E27
  502. [env:itead-bnsz01]
  503. extends = env:esp8266-1m-base
  504. src_build_flags = -DITEAD_BNSZ01
  505. [env:wion-50055]
  506. extends = env:esp8266-1m-base
  507. src_build_flags = -DWION_50055
  508. [env:exs-wifi-relay-v31]
  509. extends = env:esp8266-4m-base
  510. src_build_flags = -DEXS_WIFI_RELAY_V31
  511. [env:exs-wifi-relay-v50]
  512. extends = env:esp8266-4m-base
  513. src_build_flags = -DEXS_WIFI_RELAY_V50
  514. [env:wemos-v9261f]
  515. extends = env:esp8266-4m-base
  516. src_build_flags = -DGENERIC_V9261F
  517. [env:esp01-v9261f]
  518. extends = env:esp8266-1m-base
  519. src_build_flags = -DGENERIC_V9261F
  520. [env:wemos-ech1560]
  521. extends = env:esp8266-4m-base
  522. src_build_flags = -DGENERIC_ECH1560
  523. [env:esp01-ech1560]
  524. extends = env:esp8266-1m-base
  525. src_build_flags = -DGENERIC_ECH1560
  526. [env:mancavemade-esplive]
  527. extends = env:esp8266-4m-base
  528. src_build_flags = -DMANCAVEMADE_ESPLIVE
  529. [env:tuya-generic-dimmer]
  530. extends = env:esp8266-1m-base
  531. src_build_flags = -DTUYA_GENERIC_DIMMER -DDEBUG_SERIAL_SUPPORT=0 -DDISABLE_POSTMORTEM_STACKDUMP
  532. [env:intermittech-quinled]
  533. extends = env:esp8266-1m-base
  534. src_build_flags = -DINTERMITTECH_QUINLED
  535. [env:xenon-sm-pw702u]
  536. extends = env:esp8266-1m-base
  537. src_build_flags = -DXENON_SM_PW702U
  538. [env:iselector-sm-pw702]
  539. extends = env:esp8266-1m-base
  540. src_build_flags = -DISELECTOR_SM_PW702
  541. [env:authometion-lyt8266]
  542. extends = env:esp8266-1m-base
  543. src_build_flags = -DAUTHOMETION_LYT8266
  544. [env:kmc-70011]
  545. extends = env:esp8266-1m-base
  546. src_build_flags = -DKMC_70011
  547. [env:yjzk-switch-1ch]
  548. extends = env:esp8266-1m-base
  549. src_build_flags = -DYJZK_SWITCH_1CH
  550. [env:yjzk-switch-2ch]
  551. extends = env:esp8266-1m-base
  552. src_build_flags = -DYJZK_SWITCH_2CH
  553. [env:yjzk-switch-3ch]
  554. extends = env:esp8266-1m-base
  555. src_build_flags = -DYJZK_SWITCH_3CH
  556. [env:generic-8ch]
  557. extends = env:esp8266-4m-base
  558. src_build_flags = -DGENERIC_8CH
  559. [env:gizwits-witty-cloud]
  560. extends = env:esp8266-4m-base
  561. src_build_flags = -DGIZWITS_WITTY_CLOUD
  562. [env:euromate-wifi-stecker-shuko]
  563. extends = env:esp8266-1m-base
  564. src_build_flags = -DEUROMATE_WIFI_STECKER_SCHUKO
  565. [env:euromate-wifi-stecker-shuko-v2]
  566. extends = env:esp8266-2m-base
  567. src_build_flags = -DEUROMATE_WIFI_STECKER_SCHUKO_V2
  568. [env:tonbux-powerstrip02]
  569. extends = env:esp8266-1m-base
  570. src_build_flags = -DTONBUX_POWERSTRIP02
  571. [env:lingan-swa1]
  572. extends = env:esp8266-1m-base
  573. src_build_flags = -DLINGAN_SWA1
  574. [env:stm-relay]
  575. extends = env:esp8266-1m-base
  576. src_build_flags = -DSTM_RELAY -DDISABLE_POSTMORTEM_STACKDUMP
  577. [env:heygo-hy02]
  578. extends = env:esp8266-1m-base
  579. src_build_flags = -DHEYGO_HY02
  580. [env:maxcio-wus002s]
  581. extends = env:esp8266-1m-base
  582. src_build_flags = -DMAXCIO_WUS002S
  583. [env:maxcio-wde004]
  584. extends = env:esp8266-1m-base
  585. src_build_flags = -DMAXCIO_WDE004
  586. [env:maxcio-wuk007s]
  587. extends = env:esp8266-1m-base
  588. src_build_flags = -DMAXCIO_WUK007S
  589. [env:yidian-xsssa05]
  590. extends = env:esp8266-1m-base
  591. src_build_flags = -DYIDIAN_XSSSA05
  592. [env:oukitel-p1]
  593. extends = env:esp8266-1m-base
  594. src_build_flags = -DOUKITEL_P1
  595. [env:tonbux-xsssa01]
  596. extends = env:esp8266-1m-base
  597. src_build_flags = -DTONBUX_XSSSA01
  598. [env:tonbux-xsssa06]
  599. extends = env:esp8266-1m-base
  600. src_build_flags = -DTONBUX_XSSSA06
  601. [env:green-esp8266relay]
  602. extends = env:esp8266-4m-base
  603. src_build_flags = -DGREEN_ESP8266RELAY
  604. [env:ike-espike]
  605. extends = env:esp8266-4m-base
  606. src_build_flags = -DIKE_ESPIKE
  607. [env:arniex-swifitch]
  608. extends = env:esp8266-4m-base
  609. src_build_flags = -DARNIEX_SWIFITCH
  610. [env:zhilde-44eu-w]
  611. extends = env:esp8266-1m-base
  612. src_build_flags = -DZHILDE_44EU_W
  613. [env:zhilde-64eu-w]
  614. extends = env:esp8266-1m-base
  615. src_build_flags = -DZHILDE_64EU_W
  616. [env:luani-hvio]
  617. extends = env:esp8266-1m-base
  618. src_build_flags = -DLUANI_HVIO
  619. [env:avatto-power-plug-wifi]
  620. extends = env:esp8266-1m-base
  621. src_build_flags = -DAVATTO_NAS_WR01W
  622. [env:neo-coolcam-power-plug-wifi]
  623. extends = env:esp8266-1m-base
  624. src_build_flags = -DNEO_COOLCAM_NAS_WR01W
  625. [env:deltaco-sh-p01]
  626. extends = env:esp8266-1m-base
  627. src_build_flags = -DDELTACO_SH_P01
  628. [env:deltaco-sh-p03usb]
  629. extends = env:esp8266-1m-base
  630. src_build_flags = -DDELTACO_SH_P03USB
  631. [env:deltaco-sh-lexxw]
  632. extends = env:esp8266-1m-base
  633. src_build_flags = -DDELTACO_SH_LEXXW
  634. [env:deltaco-sh-lexxrgb]
  635. extends = env:esp8266-1m-base
  636. src_build_flags = -DDELTACO_SH_LEXXRGB
  637. [env:estink-wifi-power-strip]
  638. extends = env:esp8266-1m-base
  639. src_build_flags = -DFORNORM_ZLD_34EU
  640. [env:iwoole-led-table-lamp]
  641. extends = env:esp8266-1m-base
  642. src_build_flags = -DIWOOLE_LED_TABLE_LAMP
  643. [env:lombex-lux-nova2-tunable-white]
  644. extends = env:esp8266-1m-base
  645. src_build_flags = -DLOMBEX_LUX_NOVA2_TUNABLE_WHITE
  646. [env:lombex-lux-nova2-white-color]
  647. extends = env:esp8266-1m-base
  648. src_build_flags = -DLOMBEX_LUX_NOVA2_WHITE_COLOR
  649. [env:heltec-touch-relay]
  650. extends = env:esp8266-1m-base
  651. src_build_flags = -DHELTEC_TOUCHRELAY
  652. [env:allnet-4duino-iot-wlan-relais]
  653. extends = env:esp8266-4m-base
  654. src_build_flags = -DALLNET_4DUINO_IOT_WLAN_RELAIS
  655. [env:tonbux-mosquito-killer]
  656. extends = env:esp8266-1m-base
  657. src_build_flags = -DTONBUX_MOSQUITO_KILLER
  658. [env:pilotak-esp-din-v1]
  659. extends = env:esp8266-1m-base
  660. src_build_flags = -DPILOTAK_ESP_DIN_V1
  661. [env:nodemcu-geiger]
  662. extends = env:esp8266-4m-base
  663. src_build_flags = -DNODEMCU_BASIC -DGEIGER_SUPPORT=1 -DEVENTS_SUPPORT=0 -DINFLUXDB_SUPPORT=1 -DALEXA_SUPPORT=0 -DALEXA_ENABLED=0
  664. [env:blitzwolf-bwshpx]
  665. extends = env:esp8266-1m-base
  666. src_build_flags = -DBLITZWOLF_BWSHPX
  667. [env:blitzwolf-bwshpx-v23]
  668. extends = env:esp8266-1m-base
  669. src_build_flags = -DBLITZWOLF_BWSHPX_V23
  670. [env:blitzwolf-bwshp5]
  671. extends = env:esp8266-1m-base
  672. src_build_flags = -DBLITZWOLF_BWSHP5
  673. [env:teckin-sp21]
  674. extends = env:esp8266-1m-base
  675. src_build_flags = -DTECKIN_SP21
  676. [env:teckin-sp22-v14]
  677. extends = env:esp8266-1m-base
  678. src_build_flags = -DTECKIN_SP22_V14
  679. [env:teckin-sp23-v13]
  680. extends = env:esp8266-1m-base
  681. src_build_flags = -DTECKIN_SP23_V13
  682. [env:gosund-wp3]
  683. extends = env:esp8266-1m-base
  684. src_build_flags = -DGOSUND_WP3
  685. [env:gosund-ws1]
  686. extends = env:esp8266-1m-base
  687. src_build_flags = -DGOSUND_WS1
  688. [env:gosund-sp111]
  689. extends = env:esp8266-1m-base
  690. src_build_flags = -DGOSUND_SP111
  691. [env:gosund-p1]
  692. extends = env:esp8266-1m-base
  693. src_build_flags = -DGOSUND_P1
  694. [env:digoo-nx-sp202]
  695. extends = env:esp8266-1m-base
  696. src_build_flags = -DDIGOO_NX_SP202
  697. [env:tflag-nx-smx00]
  698. extends = env:esp8266-1m-base
  699. src_build_flags = -DTFLAG_NX_SMX00
  700. [env:homecube-16a]
  701. extends = env:esp8266-1m-base
  702. src_build_flags = -DHOMECUBE_16A
  703. [env:bh-onofre]
  704. extends = env:esp8266-4m-base
  705. src_build_flags = -DBH_ONOFRE
  706. [env:generic-ag-l4]
  707. extends = env:esp8266-1m-base
  708. src_build_flags = -DGENERIC_AG_L4
  709. [env:generic-ag-l4-v3]
  710. extends = env:esp8266-1m-base
  711. src_build_flags = -DGENERIC_AG_L4_V3
  712. [env:lohas-e27-9w]
  713. extends = env:esp8266-1m-base
  714. src_build_flags = -DLOHAS_E27_9W
  715. [env:lohas-e26-a19]
  716. extends = env:esp8266-1m-base
  717. src_build_flags = -DLOHAS_E26_A19
  718. [env:teckin-sb53]
  719. extends = env:esp8266-1m-base
  720. src_build_flags = -DTECKIN_SB53
  721. [env:allterco-shelly1]
  722. extends = env:esp8266-2m-base
  723. src_build_flags = -DALLTERCO_SHELLY1
  724. [env:allterco-shelly2]
  725. extends = env:esp8266-2m-base
  726. src_build_flags = -DALLTERCO_SHELLY2
  727. [env:allterco-shelly1pm]
  728. extends = env:esp8266-2m-base
  729. src_build_flags = -DALLTERCO_SHELLY1PM
  730. [env:allterco-shelly25]
  731. extends = env:esp8266-2m-base
  732. src_build_flags = -DALLTERCO_SHELLY25
  733. [env:xiaomi-smart-desk-lamp]
  734. extends = env:esp8266-1m-base
  735. src_build_flags = -DXIAOMI_SMART_DESK_LAMP
  736. [env:phyx-esp12-rgb]
  737. extends = env:esp8266-1m-base
  738. src_build_flags = -DPHYX_ESP12_RGB
  739. [env:bestek-mrj1011]
  740. extends = env:esp8266-1m-base
  741. src_build_flags = -DBESTEK_MRJ1011
  742. [env:gblife-rgbw-socket]
  743. extends = env:esp8266-1m-base
  744. src_build_flags = -DGBLIFE_RGBW_SOCKET
  745. [env:smartlife-mini-smart-socket]
  746. extends = env:esp8266-1m-base
  747. src_build_flags = -DSMARTLIFE_MINI_SMART_SOCKET
  748. [env:hama-wifi-steckdose-00176533]
  749. extends = env:esp8266-1m-base
  750. src_build_flags = -DHAMA_WIFI_STECKDOSE_00176533
  751. [env:teckin-sp20]
  752. extends = env:esp8266-1m-base
  753. src_build_flags = -DTECKIN_SP20
  754. [env:litesun-la-wf3]
  755. extends = env:esp8266-1m-base
  756. src_build_flags = -DLITESUN_LA_WF3
  757. [env:generic-gu10]
  758. extends = env:esp8266-1m-base
  759. src_build_flags = -DGENERIC_GU10
  760. [env:generic-e14]
  761. extends = env:esp8266-1m-base
  762. src_build_flags = -DGENERIC_E14
  763. [env:nexete-a19]
  764. extends = env:esp8266-1m-base
  765. src_build_flags = -DNEXETE_A19
  766. [env:psh-wifi-plug]
  767. extends = env:esp8266-1m-base
  768. src_build_flags = -DPSH_WIFI_PLUG
  769. [env:psh-rgbw-controller]
  770. extends = env:esp8266-4m-base
  771. src_build_flags = -DPSH_RGBW_CONTROLLER
  772. [env:psh-wifi-sensor]
  773. extends = env:esp8266-4m-base
  774. src_build_flags = -DPSH_WIFI_SENSOR
  775. [env:jinvoo-valve-sm-aw713]
  776. extends = env:esp8266-1m-base
  777. src_build_flags = -DJINVOO_VALVE_SM_AW713
  778. [env:etekcity-esw01-usa]
  779. extends = env:esp8266-1m-base
  780. src_build_flags = -DETEKCITY_ESW01_USA
  781. [env:fs-uap1]
  782. extends = env:esp8266-4m-base
  783. src_build_flags = -DFS_UAP1
  784. [env:muvit-io-miobulb001]
  785. extends = env:esp8266-1m-base
  786. src_build_flags = -DMUVIT_IO_MIOBULB001
  787. [env:hykker-smart-home-power-plug]
  788. extends = env:esp8266-1m-base
  789. src_build_flags = -DHYKKER_SMART_HOME_POWER_PLUG
  790. [env:kogan-smarter-home-plug-w-pow]
  791. extends = env:esp8266-1m-base
  792. src_build_flags = -DKOGAN_SMARTER_HOME_PLUG_W_POW
  793. [env:lsc-smart-led-light-strip]
  794. extends = env:esp8266-1m-base
  795. src_build_flags = -DLSC_SMART_LED_LIGHT_STRIP
  796. [env:linksprite-linknode-r4]
  797. extends = env:esp8266-4m-base
  798. src_build_flags = -DLINKSPRITE_LINKNODE_R4
  799. [env:ehomediy-wt02]
  800. extends = env:esp8266-1m-base
  801. src_build_flags = -DEHOMEDIY_WT02
  802. [env:ehomediy-wt03]
  803. extends = env:esp8266-1m-base
  804. src_build_flags = -DEHOMEDIY_WT03
  805. [env:kingart-curtain-switch]
  806. extends = env:esp8266-1m-base
  807. src_build_flags = -DKINGART_CURTAIN_SWITCH
  808. [env:aoycocr-x5p]
  809. extends = env:esp8266-1m-base
  810. src_build_flags = -DAOYCOCR_X5P
  811. [env:hugoai-awp02l-n]
  812. extends = env:esp8266-1m-base
  813. src_build_flags = -DHUGOAI_AWP02L_N
  814. [env:nedis-wifip310fwt]
  815. extends = env:esp8266-1m-base
  816. src_build_flags = -DNEDIS_WIFIP310FWT
  817. [env:nedis-wifip310fwt-sensor]
  818. extends = env:esp8266-1m-base
  819. src_build_flags = -DNEDIS_WIFIP310FWT -DANALOG_SUPPORT=1
  820. [env:arlec-pc190ha]
  821. extends = env:esp8266-1m-base
  822. src_build_flags = -DARLEC_PC190HA
  823. [env:arlec-pb89ha]
  824. extends = env:esp8266-1m-base
  825. src_build_flags = -DARLEC_PB89HA
  826. [env:prodino-wifi]
  827. extends = env:esp8266-2m-base
  828. src_build_flags = -DPRODINO_WIFI -DNOWSAUTH
  829. [env:fcmila-e27-7w-rgbw]
  830. extends = env:esp8266-1m-base
  831. src_build_flags = -DFCMILA_E27_7W_RGBW
  832. [env:benexmart-gu53-rgbww]
  833. extends = env:esp8266-1m-base
  834. src_build_flags = -DBENEXMART_GU53_RGBWW
  835. [env:lsc-e27-10w-white]
  836. extends = env:esp8266-1m-base
  837. src_build_flags = -DLSC_E27_10W_WHITE
  838. [env:garland-wemos]
  839. extends = env:esp8266-4m-base
  840. board = d1_mini
  841. src_build_flags = -DWEMOS_D1_MINI -DGARLAND_SUPPORT=1