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.

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