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.

82 lines
1.8 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. lib_install = 19,31,44,64,305,306,346,408,727
  14. extra_script = pio_hooks.py
  15. [ota]
  16. upload_speed = 115200
  17. upload_port = "192.168.4.1"
  18. upload_flags = --auth=fibonacci --port 8266
  19. [env:sonoff-debug]
  20. include = common
  21. board = esp01_1m
  22. build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF
  23. [env:sonoff-debug-ota]
  24. include = env:sonoff-debug,ota
  25. [env:sonoff-pow-debug]
  26. include = common
  27. board = esp01_1m
  28. build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF_POW
  29. [env:sonoff-pow-debug-ota]
  30. include = env:sonoff-pow-debug,ota
  31. [env:slampher-debug]
  32. include = common
  33. board = esp01_1m
  34. build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSLAMPHER
  35. [env:slampher-debug-ota]
  36. include = env:slampher-debug,ota
  37. [env:s20-debug]
  38. include = common
  39. board = esp01_1m
  40. build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20
  41. [env:s20-debug-ota]
  42. include = env:s20-debug,ota
  43. [env:node-debug]
  44. include = common
  45. board = nodemcuv2
  46. build_flags = -DNODEMCUV2 -DDEBUG_PORT=Serial
  47. [env:node-debug-ota]
  48. include = env:node-debug,ota
  49. [env:ac-device]
  50. topic = /home/cellar/airconditioner/ip
  51. include = env:s20-debug-ota
  52. [env:washer-device]
  53. topic = /home/cellar/washer/ip
  54. include = env:sonoff-debug-ota
  55. build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_EMON=1 -DENABLE_DHT=1
  56. [env:studio-lamp-device]
  57. topic = /home/studio/lamp/ip
  58. include = env:sonoff-debug-ota
  59. [env:living-lamp-device]
  60. topic = /home/living/lamp/ip
  61. include = env:s20-debug-ota