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.

947 lines
30 KiB

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