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.

123 lines
3.2 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
  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. AsyncMqttClient
  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. # ------------------------------------------------------------------------------
  37. [env:node-debug]
  38. include = common
  39. board = nodemcuv2
  40. platform = espressif8266
  41. build_flags = -g -DNODEMCUV2 -DDEBUG_PORT=Serial
  42. lib_ignore =
  43. [env:node-debug-ota]
  44. include = env:node-debug,ota
  45. [env:sonoff-debug]
  46. include = common
  47. board = esp01_1m
  48. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF
  49. [env:sonoff-debug-ota]
  50. include = env:sonoff-debug,ota
  51. [env:sonoff-pow-debug]
  52. include = common
  53. board = esp01_1m
  54. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF_POW
  55. [env:sonoff-pow-debug-ota]
  56. include = env:sonoff-pow-debug,ota
  57. [env:sonoff-dual-debug]
  58. include = common
  59. board = esp12e
  60. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF_DUAL
  61. [env:sonoff-dual-debug-ota]
  62. include = env:sonoff-dual-debug,ota
  63. [env:slampher-debug]
  64. include = common
  65. board = esp01_1m
  66. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSLAMPHER
  67. [env:slampher-debug-ota]
  68. include = env:slampher-debug,ota
  69. [env:s20-debug]
  70. include = common
  71. board = esp01_1m
  72. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20
  73. [env:s20-debug-ota]
  74. include = env:s20-debug,ota
  75. [env:electrodragon-debug]
  76. include = common
  77. board = esp12e
  78. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DESP_RELAY_BOARD
  79. [env:electrodragon-debug-ota]
  80. include = env:electrodragon-debug,ota
  81. # ------------------------------------------------------------------------------
  82. [env:ac-device]
  83. topic = /home/cellar/airconditioner/ip
  84. include = env:s20-debug-ota
  85. [env:washer-device]
  86. topic = /home/cellar/washer/ip
  87. include = env:sonoff-debug-ota
  88. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_EMON=1 -DENABLE_DHT=1
  89. [env:studio-lamp-device]
  90. topic = /home/studio/lamp/ip
  91. include = env:sonoff-debug-ota
  92. platform = espressif8266_stage
  93. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_FAUXMO=1
  94. lib_ignore =
  95. [env:living-lamp-device]
  96. topic = /home/living/lamp/ip
  97. include = env:s20-debug-ota
  98. platform = espressif8266_stage
  99. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20 -DENABLE_FAUXMO=1
  100. lib_ignore =