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.

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