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.

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