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.

37 lines
1.8 KiB

  1. # -------------------------------------------------------------------------------------------------------------
  2. # Example file for 'platformio_override.ini' use.
  3. # Either copy and paste this file, then rename removing the .example or create your
  4. # own file: 'platformio_override.ini'
  5. # 'platformio_override.ini' allows users to create their own environments to add, remove or change
  6. # firmware configurations.
  7. #
  8. # See: https://github.com/xoseperez/espurna/wiki/PlatformIO#customize-build-settings
  9. # for more details.
  10. # -------------------------------------------------------------------------------------------------------------
  11. # Example for a standard Sonoff Basic R2 or R3 but enabling DHT support on GPIO 2.
  12. # It can be built from VSCode/PlatformIO by selecting the 'Build: my-sonoff-build-dht'
  13. # build selection.
  14. [env:my-sonoff-build-dht]
  15. extends = env:esp8266-1m-base
  16. src_build_flags = -DITEAD_SONOFF_BASIC -DDHT_SUPPORT=1 -DDHT_PIN=2
  17. # Example for an environment based on a 1M byte esp8266 board. E.G. Sonoff Basic R2 or R3.
  18. # The 'extends' key can be set to 'env:esp8266-1m-latest-base' which uses
  19. # the latest platform build version or, 'env:esp8266-1m-base' to use the default base
  20. # platform build version.
  21. # This example environment also uses 'code/espurna/config/custom.h' allowing a more refined configuration.
  22. # See: https://github.com/xoseperez/espurna/wiki/PlatformIO#customh and 'code/espurna/config/custom.h.example'
  23. [env:my-sonoff-build01]
  24. extends = env:esp8266-1m-latest-base
  25. src_build_flags = -DMY_SONOFF_BUILD01 -DUSE_CUSTOM_H
  26. # Example for an environment the same as 'my-sonoff-build01' but with a different 'custom.h' configuration.
  27. [env:my-sonoff-build02]
  28. extends = env:esp8266-1m-latest-base
  29. src_build_flags = -DMY_SONOFF_BUILD02 -DUSE_CUSTOM_H