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.

698 lines
19 KiB

  1. [platformio]
  2. env_default = nodemcu-lolin
  3. src_dir = espurna
  4. data_dir = espurna/data
  5. [common]
  6. build_flags = -g -DMQTT_MAX_PACKET_SIZE=400
  7. build_flags_512k = ${common.build_flags} -Wl,-Tesp8266.flash.512k0.ld
  8. build_flags_1m = ${common.build_flags} -Wl,-Tesp8266.flash.1m0.ld
  9. lib_deps =
  10. DHT sensor library
  11. Adafruit Unified Sensor
  12. https://github.com/xoseperez/Time
  13. ArduinoJson
  14. https://github.com/me-no-dev/ESPAsyncTCP#991f855
  15. https://github.com/me-no-dev/ESPAsyncWebServer#a94265d
  16. https://github.com/marvinroger/async-mqtt-client#v0.8.1
  17. PubSubClient
  18. Embedis
  19. NtpClientLib
  20. OneWire
  21. DallasTemperature
  22. Brzo I2C
  23. https://bitbucket.org/xoseperez/justwifi.git#1.1.4
  24. https://bitbucket.org/xoseperez/hlw8012.git#1.0.1
  25. https://bitbucket.org/xoseperez/fauxmoesp.git#2.1.0
  26. https://bitbucket.org/xoseperez/nofuss.git#0.2.2
  27. https://bitbucket.org/xoseperez/emonliteesp.git#0.1.2
  28. https://bitbucket.org/xoseperez/debounceevent.git#2.0.1
  29. https://github.com/xoseperez/my9291#1.0.0
  30. https://github.com/xoseperez/RemoteSwitch-arduino-library.git
  31. lib_ignore =
  32. # ------------------------------------------------------------------------------
  33. [env:wemos-d1mini-relayshield]
  34. platform = espressif8266
  35. framework = arduino
  36. board = d1_mini
  37. lib_deps = ${common.lib_deps}
  38. lib_ignore = ${common.lib_ignore}
  39. build_flags = ${common.build_flags} -DWEMOS_D1_MINI_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  40. upload_speed = 460800
  41. [env:wemos-d1mini-relayshield-ota]
  42. platform = espressif8266
  43. framework = arduino
  44. board = d1_mini
  45. lib_deps = ${common.lib_deps}
  46. lib_ignore = ${common.lib_ignore}
  47. build_flags = ${common.build_flags} -DWEMOS_D1_MINI_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  48. upload_speed = 115200
  49. upload_port = "192.168.4.1"
  50. upload_flags = --auth=fibonacci --port 8266
  51. [env:nodemcu-lolin]
  52. platform = espressif8266
  53. framework = arduino
  54. board = nodemcuv2
  55. lib_deps = ${common.lib_deps}
  56. lib_ignore = ${common.lib_ignore}
  57. build_flags = ${common.build_flags} -DNODEMCU_LOLIN -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  58. upload_speed = 460800
  59. [env:nodemcu-lolin-ota]
  60. platform = espressif8266
  61. framework = arduino
  62. board = nodemcuv2
  63. lib_deps = ${common.lib_deps}
  64. lib_ignore = ${common.lib_ignore}
  65. build_flags = ${common.build_flags} -DNODEMCU_LOLIN -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  66. upload_speed = 115200
  67. upload_port = "192.168.4.1"
  68. upload_flags = --auth=fibonacci --port 8266
  69. # ------------------------------------------------------------------------------
  70. [env:tinkerman-espurna-h]
  71. platform = espressif8266
  72. framework = arduino
  73. board = esp12e
  74. lib_deps = ${common.lib_deps}
  75. lib_ignore = ${common.lib_ignore}
  76. build_flags = ${common.build_flags} -DTINKERMAN_ESPURNA_H
  77. upload_speed = 460800
  78. [env:tinkerman-espurna-h-ota]
  79. platform = espressif8266
  80. framework = arduino
  81. board = esp12e
  82. lib_deps = ${common.lib_deps}
  83. lib_ignore = ${common.lib_ignore}
  84. build_flags = ${common.build_flags} -DTINKERMAN_ESPURNA_H
  85. upload_speed = 115200
  86. upload_port = "192.168.4.1"
  87. upload_flags = --auth=fibonacci --port 8266
  88. # ------------------------------------------------------------------------------
  89. [env:itead-sonoff-basic]
  90. platform = espressif8266
  91. framework = arduino
  92. board = esp01_1m
  93. board_flash_mode = dout
  94. lib_deps = ${common.lib_deps}
  95. lib_ignore = ${common.lib_ignore}
  96. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC
  97. [env:itead-sonoff-basic-ota]
  98. platform = espressif8266
  99. framework = arduino
  100. board = esp01_1m
  101. board_flash_mode = dout
  102. lib_deps = ${common.lib_deps}
  103. lib_ignore = ${common.lib_ignore}
  104. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC
  105. upload_speed = 115200
  106. upload_port = "192.168.4.1"
  107. upload_flags = --auth=fibonacci --port 8266
  108. [env:itead-sonoff-basic-dht22]
  109. platform = espressif8266
  110. framework = arduino
  111. board = esp01_1m
  112. board_flash_mode = dout
  113. lib_deps = ${common.lib_deps}
  114. lib_ignore = ${common.lib_ignore}
  115. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC -DENABLE_DHT=1
  116. [env:itead-sonoff-basic-ds18b20]
  117. platform = espressif8266
  118. framework = arduino
  119. board = esp01_1m
  120. board_flash_mode = dout
  121. lib_deps = ${common.lib_deps}
  122. lib_ignore = ${common.lib_ignore}
  123. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC -DENABLE_DS18B20=1
  124. [env:itead-sonoff-rf]
  125. platform = espressif8266
  126. framework = arduino
  127. board = esp01_1m
  128. board_flash_mode = dout
  129. lib_deps = ${common.lib_deps}
  130. lib_ignore = ${common.lib_ignore}
  131. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RF
  132. [env:itead-sonoff-rf-ota]
  133. platform = espressif8266
  134. framework = arduino
  135. board = esp01_1m
  136. board_flash_mode = dout
  137. lib_deps = ${common.lib_deps}
  138. lib_ignore = ${common.lib_ignore}
  139. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RF
  140. upload_speed = 115200
  141. upload_port = "192.168.4.1"
  142. upload_flags = --auth=fibonacci --port 8266
  143. [env:itead-sonoff-pow]
  144. platform = espressif8266
  145. framework = arduino
  146. board = esp01_1m
  147. board_flash_mode = dout
  148. lib_deps = ${common.lib_deps}
  149. lib_ignore = ${common.lib_ignore}
  150. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_POW
  151. [env:itead-sonoff-pow-ota]
  152. platform = espressif8266
  153. framework = arduino
  154. board = esp01_1m
  155. board_flash_mode = dout
  156. lib_deps = ${common.lib_deps}
  157. lib_ignore = ${common.lib_ignore}
  158. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_POW
  159. upload_speed = 115200
  160. upload_port = "192.168.4.1"
  161. upload_flags = --auth=fibonacci --port 8266
  162. [env:itead-sonoff-dual]
  163. platform = espressif8266
  164. framework = arduino
  165. board = esp01_1m
  166. board_flash_mode = dout
  167. lib_deps = ${common.lib_deps}
  168. lib_ignore = ${common.lib_ignore}
  169. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_DUAL
  170. [env:itead-sonoff-dual-ota]
  171. platform = espressif8266
  172. framework = arduino
  173. board = esp01_1m
  174. board_flash_mode = dout
  175. lib_deps = ${common.lib_deps}
  176. lib_ignore = ${common.lib_ignore}
  177. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_DUAL
  178. upload_speed = 115200
  179. upload_port = "192.168.4.1"
  180. upload_flags = --auth=fibonacci --port 8266
  181. [env:itead-sonoff-4ch]
  182. platform = espressif8266
  183. framework = arduino
  184. board = esp8285
  185. board_flash_mode = dout
  186. lib_deps = ${common.lib_deps}
  187. lib_ignore = ${common.lib_ignore}
  188. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_4CH
  189. [env:itead-sonoff-4ch-ota]
  190. platform = espressif8266
  191. framework = arduino
  192. board = esp8285
  193. board_flash_mode = dout
  194. lib_deps = ${common.lib_deps}
  195. lib_ignore = ${common.lib_ignore}
  196. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_4CH
  197. upload_speed = 115200
  198. upload_port = "192.168.4.1"
  199. upload_flags = --auth=fibonacci --port 8266
  200. [env:itead-sonoff-4ch-pro]
  201. platform = espressif8266
  202. framework = arduino
  203. board = esp8285
  204. board_flash_mode = dout
  205. lib_deps = ${common.lib_deps}
  206. lib_ignore = ${common.lib_ignore}
  207. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_4CH_PRO
  208. [env:itead-sonoff-4ch-pro-ota]
  209. platform = espressif8266
  210. framework = arduino
  211. board = esp8285
  212. board_flash_mode = dout
  213. lib_deps = ${common.lib_deps}
  214. lib_ignore = ${common.lib_ignore}
  215. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_4CH_PRO
  216. upload_speed = 115200
  217. upload_port = "192.168.4.1"
  218. upload_flags = --auth=fibonacci --port 8266
  219. [env:itead-sonoff-touch]
  220. platform = espressif8266
  221. framework = arduino
  222. board = esp8285
  223. board_flash_mode = dout
  224. lib_deps = ${common.lib_deps}
  225. lib_ignore = ${common.lib_ignore}
  226. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_TOUCH
  227. [env:itead-sonoff-touch-ota]
  228. platform = espressif8266
  229. framework = arduino
  230. board = esp8285
  231. board_flash_mode = dout
  232. lib_deps = ${common.lib_deps}
  233. lib_ignore = ${common.lib_ignore}
  234. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_TOUCH
  235. upload_speed = 115200
  236. upload_port = "192.168.4.1"
  237. upload_flags = --auth=fibonacci --port 8266
  238. [env:itead-sonoff-b1]
  239. platform = espressif8266
  240. framework = arduino
  241. board = esp8285
  242. board_flash_mode = dout
  243. lib_deps = ${common.lib_deps}
  244. lib_ignore = ${common.lib_ignore}
  245. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_B1
  246. [env:itead-sonoff-b1-ota]
  247. platform = espressif8266
  248. framework = arduino
  249. board = esp8285
  250. board_flash_mode = dout
  251. lib_deps = ${common.lib_deps}
  252. lib_ignore = ${common.lib_ignore}
  253. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_B1
  254. upload_speed = 115200
  255. upload_port = "192.168.4.1"
  256. upload_flags = --auth=fibonacci --port 8266
  257. [env:itead-sonoff-t1-1ch]
  258. platform = espressif8266
  259. framework = arduino
  260. board = esp8285
  261. board_flash_mode = dout
  262. lib_deps = ${common.lib_deps}
  263. lib_ignore = ${common.lib_ignore}
  264. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_1CH
  265. [env:itead-sonoff-t1-1ch-ota]
  266. platform = espressif8266
  267. framework = arduino
  268. board = esp8285
  269. board_flash_mode = dout
  270. lib_deps = ${common.lib_deps}
  271. lib_ignore = ${common.lib_ignore}
  272. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_1CH
  273. upload_speed = 115200
  274. upload_port = "192.168.4.1"
  275. upload_flags = --auth=fibonacci --port 8266
  276. [env:itead-sonoff-t1-2ch]
  277. platform = espressif8266
  278. framework = arduino
  279. board = esp8285
  280. board_flash_mode = dout
  281. lib_deps = ${common.lib_deps}
  282. lib_ignore = ${common.lib_ignore}
  283. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_2CH
  284. [env:itead-sonoff-t1-2ch-ota]
  285. platform = espressif8266
  286. framework = arduino
  287. board = esp8285
  288. board_flash_mode = dout
  289. lib_deps = ${common.lib_deps}
  290. lib_ignore = ${common.lib_ignore}
  291. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_2CH
  292. upload_speed = 115200
  293. upload_port = "192.168.4.1"
  294. upload_flags = --auth=fibonacci --port 8266
  295. [env:itead-sonoff-t1-3ch]
  296. platform = espressif8266
  297. framework = arduino
  298. board = esp8285
  299. board_flash_mode = dout
  300. lib_deps = ${common.lib_deps}
  301. lib_ignore = ${common.lib_ignore}
  302. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_3CH
  303. [env:itead-sonoff-t1-3ch-ota]
  304. platform = espressif8266
  305. framework = arduino
  306. board = esp8285
  307. board_flash_mode = dout
  308. lib_deps = ${common.lib_deps}
  309. lib_ignore = ${common.lib_ignore}
  310. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_3CH
  311. upload_speed = 115200
  312. upload_port = "192.168.4.1"
  313. upload_flags = --auth=fibonacci --port 8266
  314. [env:itead-sonoff-led]
  315. platform = espressif8266
  316. framework = arduino
  317. board = esp01_1m
  318. board_flash_mode = dout
  319. lib_deps = ${common.lib_deps}
  320. lib_ignore = ${common.lib_ignore}
  321. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_LED
  322. [env:itead-sonoff-led-ota]
  323. platform = espressif8266
  324. framework = arduino
  325. board = esp01_1m
  326. board_flash_mode = dout
  327. lib_deps = ${common.lib_deps}
  328. lib_ignore = ${common.lib_ignore}
  329. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_LED
  330. upload_speed = 115200
  331. upload_port = "192.168.4.1"
  332. upload_flags = --auth=fibonacci --port 8266
  333. [env:itead-sonoff-rfbridge]
  334. platform = espressif8266
  335. framework = arduino
  336. board = esp01_1m
  337. board_flash_mode = dout
  338. lib_deps = ${common.lib_deps}
  339. lib_ignore = ${common.lib_ignore}
  340. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RFBRIDGE
  341. [env:itead-sonoff-rfbridge-ota]
  342. platform = espressif8266
  343. framework = arduino
  344. board = esp01_1m
  345. board_flash_mode = dout
  346. lib_deps = ${common.lib_deps}
  347. lib_ignore = ${common.lib_ignore}
  348. build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RFBRIDGE
  349. upload_speed = 115200
  350. upload_port = "192.168.4.1"
  351. upload_flags = --auth=Algernon1 --port 8266
  352. # ------------------------------------------------------------------------------
  353. [env:itead-slampher]
  354. platform = espressif8266
  355. framework = arduino
  356. board = esp01_1m
  357. board_flash_mode = dout
  358. lib_deps = ${common.lib_deps}
  359. lib_ignore = ${common.lib_ignore}
  360. build_flags = ${common.build_flags_1m} -DITEAD_SLAMPHER
  361. [env:itead-slampher-ota]
  362. platform = espressif8266
  363. framework = arduino
  364. board = esp01_1m
  365. board_flash_mode = dout
  366. lib_deps = ${common.lib_deps}
  367. lib_ignore = ${common.lib_ignore}
  368. build_flags = ${common.build_flags_1m} -DITEAD_SLAMPHER
  369. upload_speed = 115200
  370. upload_port = "192.168.4.1"
  371. upload_flags = --auth=fibonacci --port 8266
  372. [env:itead-s20]
  373. platform = espressif8266
  374. framework = arduino
  375. board = esp01_1m
  376. board_flash_mode = dout
  377. lib_deps = ${common.lib_deps}
  378. lib_ignore = ${common.lib_ignore}
  379. build_flags = ${common.build_flags_1m} -DITEAD_S20
  380. [env:itead-s20-ota]
  381. platform = espressif8266
  382. framework = arduino
  383. board = esp01_1m
  384. board_flash_mode = dout
  385. lib_deps = ${common.lib_deps}
  386. lib_ignore = ${common.lib_ignore}
  387. build_flags = ${common.build_flags_1m} -DITEAD_S20
  388. upload_speed = 115200
  389. upload_port = "192.168.4.1"
  390. upload_flags = --auth=fibonacci --port 8266
  391. [env:itead-1ch-inching]
  392. platform = espressif8266
  393. framework = arduino
  394. board = esp01_1m
  395. board_flash_mode = dout
  396. lib_deps = ${common.lib_deps}
  397. lib_ignore = ${common.lib_ignore}
  398. build_flags = ${common.build_flags_1m} -DITEAD_1CH_INCHING
  399. [env:itead-1ch-inching-ota]
  400. platform = espressif8266
  401. framework = arduino
  402. board = esp01_1m
  403. board_flash_mode = dout
  404. lib_deps = ${common.lib_deps}
  405. lib_ignore = ${common.lib_ignore}
  406. build_flags = ${common.build_flags_1m} -DITEAD_1CH_INCHING
  407. upload_speed = 115200
  408. upload_port = "192.168.4.1"
  409. upload_flags = --auth=fibonacci --port 8266
  410. [env:itead-motor]
  411. platform = espressif8266
  412. framework = arduino
  413. board = esp01_1m
  414. board_flash_mode = dout
  415. lib_deps = ${common.lib_deps}
  416. lib_ignore = ${common.lib_ignore}
  417. build_flags = ${common.build_flags_1m} -DITEAD_MOTOR
  418. [env:itead-motor-ota]
  419. platform = espressif8266
  420. framework = arduino
  421. board = esp01_1m
  422. board_flash_mode = dout
  423. lib_deps = ${common.lib_deps}
  424. lib_ignore = ${common.lib_ignore}
  425. build_flags = ${common.build_flags_1m} -DITEAD_MOTOR
  426. upload_speed = 115200
  427. upload_port = "192.168.4.1"
  428. upload_flags = --auth=fibonacci --port 8266
  429. # ------------------------------------------------------------------------------
  430. [env:electrodragon-wifi-iot]
  431. platform = espressif8266
  432. framework = arduino
  433. board = esp12e
  434. lib_deps = ${common.lib_deps}
  435. lib_ignore = ${common.lib_ignore}
  436. build_flags = ${common.build_flags} -DELECTRODRAGON_WIFI_IOT -DENABLE_DHT=1
  437. [env:electrodragon-wifi-iot-ota]
  438. platform = espressif8266
  439. framework = arduino
  440. board = esp12e
  441. lib_deps = ${common.lib_deps}
  442. lib_ignore = ${common.lib_ignore}
  443. build_flags = ${common.build_flags} -DELECTRODRAGON_WIFI_IOT -DENABLE_DHT=1
  444. upload_speed = 115200
  445. upload_port = "192.168.4.1"
  446. upload_flags = --auth=fibonacci --port 8266
  447. [env:workchoice-ecoplug]
  448. platform = espressif8266
  449. framework = arduino
  450. board = esp01_1m
  451. board_flash_mode = dout
  452. lib_deps = ${common.lib_deps}
  453. lib_ignore = ${common.lib_ignore}
  454. build_flags = ${common.build_flags_1m} -DWORKCHOICE_ECOPLUG
  455. [env:workchoice-ecoplug-ota]
  456. platform = espressif8266
  457. framework = arduino
  458. board = esp01_1m
  459. board_flash_mode = dout
  460. lib_deps = ${common.lib_deps}
  461. lib_ignore = ${common.lib_ignore}
  462. build_flags = ${common.build_flags_1m} -DWORKCHOICE_ECOPLUG
  463. upload_speed = 115200
  464. upload_port = "192.168.4.1"
  465. upload_flags = --auth=fibonacci --port 8266
  466. [env:jangoe-wifi-relay]
  467. platform = espressif8266
  468. framework = arduino
  469. board = esp12e
  470. lib_deps = ${common.lib_deps}
  471. lib_ignore = ${common.lib_ignore}
  472. build_flags = ${common.build_flags} -DJANGOE_WIFI_RELAY_NC
  473. [env:jangoe-wifi-relay-ota]
  474. platform = espressif8266
  475. framework = arduino
  476. board = esp12e
  477. lib_deps = ${common.lib_deps}
  478. lib_ignore = ${common.lib_ignore}
  479. build_flags = ${common.build_flags} -DJANGOE_WIFI_RELAY_NC
  480. upload_speed = 115200
  481. upload_port = "192.168.4.1"
  482. upload_flags = --auth=fibonacci --port 8266
  483. [env:openenergymonitor-mqtt-relay]
  484. platform = espressif8266
  485. framework = arduino
  486. board = esp_wroom_02
  487. lib_deps = ${common.lib_deps}
  488. lib_ignore = ${common.lib_ignore}
  489. build_flags = ${common.build_flags} -DOPENENERGYMONITOR_MQTT_RELAY -DENABLE_DS18B20=1
  490. [env:openenergymonitor-mqtt-relay-ota]
  491. platform = espressif8266
  492. framework = arduino
  493. board = esp_wroom_02
  494. lib_deps = ${common.lib_deps}
  495. lib_ignore = ${common.lib_ignore}
  496. build_flags = ${common.build_flags} -DOPENENERGYMONITOR_MQTT_RELAY -DENABLE_DS18B20=1
  497. upload_speed = 115200
  498. upload_port = "192.168.4.1"
  499. upload_flags = --auth=fibonacci --port 8266
  500. [env:jorgegarcia-wifi-relays]
  501. platform = espressif8266
  502. framework = arduino
  503. board = esp01_1m
  504. lib_deps = ${common.lib_deps}
  505. lib_ignore = ${common.lib_ignore}
  506. build_flags = ${common.build_flags_1m} -DJORGEGARCIA_WIFI_RELAYS
  507. [env:jorgegarcia-wifi-relays-ota]
  508. platform = espressif8266
  509. framework = arduino
  510. board = esp01_1m
  511. lib_deps = ${common.lib_deps}
  512. lib_ignore = ${common.lib_ignore}
  513. build_flags = ${common.build_flags_1m} -DJORGEGARCIA_WIFI_RELAYS
  514. upload_speed = 115200
  515. upload_port = "192.168.4.1"
  516. upload_flags = --auth=fibonacci --port 8266
  517. [env:aithinker-ai-light]
  518. platform = espressif8266
  519. framework = arduino
  520. board = esp01_1m
  521. board_flash_mode = dout
  522. lib_deps = ${common.lib_deps}
  523. lib_ignore = ${common.lib_ignore}
  524. build_flags = ${common.build_flags_1m} -DAITHINKER_AI_LIGHT
  525. [env:aithinker-ai-light-ota]
  526. platform = espressif8266
  527. framework = arduino
  528. board = esp01_1m
  529. board_flash_mode = dout
  530. lib_deps = ${common.lib_deps}
  531. lib_ignore = ${common.lib_ignore}
  532. build_flags = ${common.build_flags_1m} -DAITHINKER_AI_LIGHT
  533. upload_speed = 115200
  534. upload_port = "192.168.4.1"
  535. upload_flags = --auth=fibonacci --port 8266
  536. [env:magichome-led-controller]
  537. platform = espressif8266
  538. framework = arduino
  539. board = esp01_1m
  540. lib_deps = ${common.lib_deps}
  541. lib_ignore = ${common.lib_ignore}
  542. build_flags = ${common.build_flags_1m} -DMAGICHOME_LED_CONTROLLER
  543. [env:magichome-led-controller-ota]
  544. platform = espressif8266
  545. framework = arduino
  546. board = esp01_1m
  547. lib_deps = ${common.lib_deps}
  548. lib_ignore = ${common.lib_ignore}
  549. build_flags = ${common.build_flags_1m} -DMAGICHOME_LED_CONTROLLER
  550. upload_speed = 115200
  551. upload_port = "192.168.4.1"
  552. upload_flags = --auth=fibonacci --port 8266
  553. [env:huacanxing-h801]
  554. platform = espressif8266
  555. framework = arduino
  556. board = esp01_1m
  557. board_flash_mode = dout
  558. lib_deps = ${common.lib_deps}
  559. lib_ignore = ${common.lib_ignore}
  560. build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DHUACANXING_H801 -DDEBUG_PORT=Serial1
  561. [env:huacanxing-h801-ota]
  562. platform = espressif8266
  563. framework = arduino
  564. board = esp01_1m
  565. board_flash_mode = dout
  566. lib_deps = ${common.lib_deps}
  567. lib_ignore = ${common.lib_ignore}
  568. build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DHUACANXING_H801 -DDEBUG_PORT=Serial1
  569. upload_speed = 115200
  570. upload_port = "192.168.4.1"
  571. upload_flags = --auth=fibonacci --port 8266
  572. [env:itead-bnsz01]
  573. platform = espressif8266
  574. framework = arduino
  575. board = esp8285
  576. board_flash_mode = dout
  577. lib_deps = ${common.lib_deps}
  578. lib_ignore = ${common.lib_ignore}
  579. build_flags = ${common.build_flags_1m} -DITEAD_BN_SZ01
  580. [env:itead-bnsz01-ota]
  581. platform = espressif8266
  582. framework = arduino
  583. board = esp8285
  584. board_flash_mode = dout
  585. lib_deps = ${common.lib_deps}
  586. lib_ignore = ${common.lib_ignore}
  587. build_flags = ${common.build_flags_1m} -DITEAD_BN_SZ01
  588. upload_speed = 115200
  589. upload_port = "192.168.4.1"
  590. upload_flags = --auth=fibonacci --port 8266
  591. [env:wion-50055]
  592. platform = espressif8266
  593. framework = arduino
  594. board = esp01_1m
  595. board_flash_mode = dout
  596. lib_deps = ${common.lib_deps}
  597. lib_ignore = ${common.lib_ignore}
  598. build_flags = ${common.build_flags_1m} -DWION_50055
  599. [env:wion-50055-ota]
  600. platform = espressif8266
  601. framework = arduino
  602. board = esp01_1m
  603. board_flash_mode = dout
  604. lib_deps = ${common.lib_deps}
  605. lib_ignore = ${common.lib_ignore}
  606. build_flags = ${common.build_flags_1m} -DWION_50055
  607. upload_speed = 115200
  608. upload_port = "192.168.4.1"
  609. upload_flags = --auth=fibonacci --port 8266
  610. [env:exs-wifi-relay-v31]
  611. platform = espressif8266
  612. framework = arduino
  613. board = esp07
  614. board_flash_mode = dout
  615. lib_deps = ${common.lib_deps}
  616. lib_ignore = ${common.lib_ignore}
  617. build_flags = ${common.build_flags_1m} -DEXS_WIFI_RELAY_V31
  618. [env:exs-wifi-relay-v31-ota]
  619. platform = espressif8266
  620. framework = arduino
  621. board = esp07
  622. board_flash_mode = dout
  623. lib_deps = ${common.lib_deps}
  624. lib_ignore = ${common.lib_ignore}
  625. build_flags = ${common.build_flags_1m} -DEXS_WIFI_RELAY_V31
  626. upload_speed = 115200
  627. upload_port = "192.168.4.1"
  628. upload_flags = --auth=fibonacci --port 8266