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.

132 lines
3.4 KiB

  1. #
  2. # PLEASE NOTE:
  3. # This platformio.ini file is not standard and uses a custom feature.
  4. # The "include" option is not supported by the official version.
  5. # Check my PR for this feature here:
  6. # https://github.com/platformio/platformio/pull/790
  7. #
  8. [platformio]
  9. env_default = node-debug
  10. [common]
  11. platform = espressif8266_stage
  12. framework = arduino
  13. extra_script = pio_hooks.py
  14. #lib_ignore = FauxmoESP, ESPAsyncUDP
  15. lib_deps =
  16. DHT sensor library
  17. Adafruit Unified Sensor
  18. Time
  19. ArduinoJson
  20. ESPAsyncTCP
  21. ESPAsyncWebServer
  22. https://github.com/marvinroger/async-mqtt-client
  23. ESPAsyncUDP
  24. Embedis
  25. NtpClientLib
  26. https://bitbucket.org/xoseperez/justwifi.git
  27. https://bitbucket.org/xoseperez/nofuss.git
  28. https://bitbucket.org/xoseperez/hlw8012.git
  29. https://bitbucket.org/xoseperez/emonliteesp.git
  30. https://bitbucket.org/xoseperez/fauxmoESP.git
  31. https://github.com/jccprj/RemoteSwitch-arduino-library
  32. [ota]
  33. upload_speed = 115200
  34. upload_port = "192.168.4.1"
  35. upload_flags = --auth=fibonacci --port 8266
  36. [def]
  37. build_flags_debug = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DENABLE_FAUXMO=1
  38. build_flags_ota = -Wl,-Tesp8266.flash.1m128.ld -DENABLE_FAUXMO=1
  39. # ------------------------------------------------------------------------------
  40. [env:node-debug]
  41. include = common
  42. board = nodemcuv2
  43. platform = espressif8266
  44. build_flags = -g -DNODEMCUV2 -DDEBUG_PORT=Serial
  45. [env:node-debug-ota]
  46. include = env:node-debug,ota
  47. [env:sonoff-debug]
  48. include = common
  49. board = esp01_1m
  50. build_flags = ${def.build_flags_debug} -DSONOFF
  51. [env:sonoff-ota]
  52. include = env:sonoff-debug,ota
  53. build_flags = ${def.build_flags_ota} -DSONOFF
  54. [env:sonoff-dht22-debug]
  55. include = env:sonoff-debug
  56. build_flags = ${def.build_flags_debug} -DSONOFF -DENABLE_DHT=1
  57. [env:sonoff-ds18b20-debug]
  58. include = env:sonoff-debug
  59. build_flags = ${def.build_flags_debug} -DSONOFF -DENABLE_DS18B20=1
  60. [env:sonoff-pow-debug]
  61. include = common
  62. board = esp01_1m
  63. build_flags = ${def.build_flags_debug} -DSONOFF_POW
  64. [env:sonoff-pow-ota]
  65. include = env:sonoff-pow-debug,ota
  66. build_flags = ${def.build_flags_ota} -DSONOFF_POW
  67. [env:sonoff-dual-debug]
  68. include = common
  69. board = esp12e
  70. build_flags = ${def.build_flags_debug} -DSONOFF_DUAL
  71. [env:sonoff-dual-ota]
  72. include = env:sonoff-dual-debug,ota
  73. build_flags = ${def.build_flags_ota} -DSONOFF_DUAL
  74. [env:slampher-debug]
  75. include = common
  76. board = esp01_1m
  77. build_flags = ${def.build_flags_debug} -DSLAMPHER
  78. [env:slampher-ota]
  79. include = env:slampher-debug,ota
  80. build_flags = ${def.build_flags_ota} -DSLAMPHER
  81. [env:s20-debug]
  82. include = common
  83. board = esp01_1m
  84. build_flags = ${def.build_flags_debug} -DS20
  85. [env:s20-ota]
  86. include = env:s20-debug,ota
  87. build_flags = ${def.build_flags_ota} -DS20
  88. [env:electrodragon-debug]
  89. include = common
  90. board = esp12e
  91. build_flags = -g -DDEBUG_PORT=Serial -DESP_RELAY_BOARD -DENABLE_FAUXMO=1 -DENABLE_DHT=1
  92. [env:electrodragon-ota]
  93. include = env:electrodragon-debug,ota
  94. build_flags = -DESP_RELAY_BOARD -DENABLE_FAUXMO=1 -DENABLE_DHT=1
  95. # ------------------------------------------------------------------------------
  96. [env:studio-lamp-device]
  97. topic = /home/studio/lamp/ip
  98. include = env:sonoff-debug-ota
  99. platform = espressif8266_stage
  100. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_FAUXMO=1
  101. lib_ignore =
  102. [env:living-lamp-device]
  103. topic = /home/living/lamp/ip
  104. include = env:s20-debug-ota
  105. platform = espressif8266_stage
  106. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DS20 -DENABLE_FAUXMO=1
  107. lib_ignore =