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

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