2017-01-28 15:44:00 +00:00
|
|
|
; PlatformIO Project Configuration File
|
|
|
|
;
|
|
|
|
; Build options: build flags, source filter, extra scripting
|
|
|
|
; Upload options: custom port, speed and extra flags
|
|
|
|
; Library options: dependencies, extra library storages
|
|
|
|
;
|
|
|
|
; Please visit documentation for the other options and examples
|
|
|
|
; http://docs.platformio.org/en/stable/projectconf.html
|
|
|
|
|
|
|
|
[platformio]
|
|
|
|
src_dir = sonoff
|
|
|
|
|
2017-09-30 14:53:50 +01:00
|
|
|
; *** Uncomment one of the lines below to build/upload only one environment
|
2018-04-22 13:47:03 +01:00
|
|
|
;env_default = sonoff
|
2018-02-10 14:13:27 +00:00
|
|
|
;env_default = sonoff-minimal
|
|
|
|
;env_default = sonoff-xxl
|
2018-04-20 15:07:06 +01:00
|
|
|
;env_default = sonoff-BG
|
2018-04-02 10:24:36 +01:00
|
|
|
;env_default = sonoff-CZ
|
2017-10-18 17:22:34 +01:00
|
|
|
;env_default = sonoff-DE
|
2018-01-18 15:19:28 +00:00
|
|
|
;env_default = sonoff-ES
|
|
|
|
;env_default = sonoff-FR
|
2018-04-19 20:57:14 +01:00
|
|
|
;env_default = sonoff-GR
|
2018-02-27 13:59:46 +00:00
|
|
|
;env_default = sonoff-HU
|
2017-12-28 12:43:51 +00:00
|
|
|
;env_default = sonoff-IT
|
2018-01-18 15:19:28 +00:00
|
|
|
;env_default = sonoff-NL
|
|
|
|
;env_default = sonoff-PL
|
2018-02-28 17:01:40 +00:00
|
|
|
;env_default = sonoff-PT
|
2018-02-16 16:35:51 +00:00
|
|
|
;env_default = sonoff-RU
|
2018-01-18 15:19:28 +00:00
|
|
|
;env_default = sonoff-CN
|
2018-04-02 10:24:36 +01:00
|
|
|
;env_default = sonoff-TW
|
2017-06-03 21:13:35 +01:00
|
|
|
|
2017-01-28 15:44:00 +00:00
|
|
|
[env:sonoff]
|
2018-02-27 13:59:46 +00:00
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
2017-01-28 15:44:00 +00:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
2017-05-07 14:57:59 +01:00
|
|
|
board_flash_mode = dout
|
2018-01-18 15:19:28 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld
|
2018-04-02 10:24:36 +01:00
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DUSE_CONFIG_OVERRIDE
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2017-06-01 16:37:30 +01:00
|
|
|
|
2017-09-30 14:53:50 +01:00
|
|
|
; *** Serial Monitor options
|
2017-09-02 16:24:05 +01:00
|
|
|
monitor_baud = 115200
|
|
|
|
|
2017-09-30 14:53:50 +01:00
|
|
|
; *** Upload Serial reset method for Wemos and NodeMCU
|
2018-01-18 15:19:28 +00:00
|
|
|
;upload_port = COM5
|
|
|
|
;upload_speed = 115200
|
2017-09-30 14:53:50 +01:00
|
|
|
;upload_resetmethod = nodemcu
|
|
|
|
|
|
|
|
; *** Upload file to OTA server using SCP
|
|
|
|
;upload_port = user@host:/path
|
|
|
|
;extra_scripts = pio/sftp-uploader.py
|
|
|
|
|
|
|
|
; *** Upload file to OTA server using HTTP
|
|
|
|
;upload_port = domus1:80/api/upload-arduino.php
|
2018-02-03 15:36:25 +00:00
|
|
|
;extra_scripts = pio/strip-floats.py, pio/http-uploader.py
|
2017-09-30 14:53:50 +01:00
|
|
|
|
2018-02-10 14:13:27 +00:00
|
|
|
[env:sonoff-minimal]
|
2018-02-27 13:59:46 +00:00
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
2017-09-02 16:24:05 +01:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
2018-02-10 14:13:27 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DBE_MINIMAL
|
2018-04-02 10:24:36 +01:00
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DBE_MINIMAL -DUSE_CONFIG_OVERRIDE
|
|
|
|
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2017-09-02 16:24:05 +01:00
|
|
|
|
2018-02-10 14:13:27 +00:00
|
|
|
; Serial Monitor options
|
2017-09-02 16:24:05 +01:00
|
|
|
monitor_baud = 115200
|
|
|
|
|
2018-02-10 14:13:27 +00:00
|
|
|
[env:sonoff-xxl]
|
2018-02-27 13:59:46 +00:00
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
2017-10-18 17:22:34 +01:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
2018-02-10 14:13:27 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DUSE_ALL_SENSORS
|
2018-04-02 10:24:36 +01:00
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DUSE_ALL_SENSORS -DUSE_CONFIG_OVERRIDE
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2017-10-18 17:22:34 +01:00
|
|
|
|
2018-02-10 14:13:27 +00:00
|
|
|
; Serial Monitor options
|
2017-10-18 17:22:34 +01:00
|
|
|
monitor_baud = 115200
|
|
|
|
|
2018-04-02 10:24:36 +01:00
|
|
|
[env:sonoff-CZ]
|
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=cs-CZ
|
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=cs-CZ -DUSE_CONFIG_OVERRIDE
|
|
|
|
extra_scripts = pio/strip-floats.py
|
2018-04-20 15:07:06 +01:00
|
|
|
|
|
|
|
; *** Serial Monitor options
|
|
|
|
monitor_baud = 115200
|
|
|
|
|
|
|
|
[env:sonoff-BG]
|
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=bg-BG
|
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=bg-BG -DUSE_CONFIG_OVERRIDE
|
|
|
|
extra_scripts = pio/strip-floats.py
|
2018-04-02 10:24:36 +01:00
|
|
|
|
|
|
|
; *** Serial Monitor options
|
|
|
|
monitor_baud = 115200
|
|
|
|
|
2018-02-10 14:13:27 +00:00
|
|
|
[env:sonoff-DE]
|
2018-02-27 13:59:46 +00:00
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
2017-10-23 11:18:15 +01:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
2018-02-10 14:13:27 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=de-DE
|
2018-04-02 10:24:36 +01:00
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=de-DE -DUSE_CONFIG_OVERRIDE
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2017-10-23 11:18:15 +01:00
|
|
|
|
|
|
|
; *** Serial Monitor options
|
|
|
|
monitor_baud = 115200
|
|
|
|
|
2018-02-10 14:13:27 +00:00
|
|
|
[env:sonoff-ES]
|
2018-02-27 13:59:46 +00:00
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
2017-12-28 12:43:51 +00:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
2018-02-10 14:13:27 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=es-AR
|
2018-04-02 10:24:36 +01:00
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=es-AR -DUSE_CONFIG_OVERRIDE
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2017-12-28 12:43:51 +00:00
|
|
|
|
|
|
|
; *** Serial Monitor options
|
|
|
|
monitor_baud = 115200
|
|
|
|
|
2018-02-10 14:13:27 +00:00
|
|
|
[env:sonoff-FR]
|
2018-02-27 13:59:46 +00:00
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
2017-12-28 12:43:51 +00:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
2018-02-10 14:13:27 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=fr-FR
|
2018-04-02 10:24:36 +01:00
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=fr-FR -DUSE_CONFIG_OVERRIDE
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2017-12-28 12:43:51 +00:00
|
|
|
|
2018-01-18 15:19:28 +00:00
|
|
|
; *** Serial Monitor options
|
|
|
|
monitor_baud = 115200
|
|
|
|
|
2018-04-19 20:57:14 +01:00
|
|
|
[env:sonoff-GR]
|
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=el-GR
|
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=el-GR -DUSE_CONFIG_OVERRIDE
|
|
|
|
extra_scripts = pio/strip-floats.py
|
|
|
|
|
|
|
|
; *** Serial Monitor options
|
|
|
|
monitor_baud = 115200
|
|
|
|
|
2018-02-27 13:59:46 +00:00
|
|
|
[env:sonoff-HU]
|
2018-02-28 17:01:40 +00:00
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
2018-02-27 13:59:46 +00:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=hu-HU
|
2018-04-02 10:24:36 +01:00
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=hu-HU -DUSE_CONFIG_OVERRIDE
|
2018-02-27 13:59:46 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
|
|
|
|
|
|
|
; *** Serial Monitor options
|
|
|
|
monitor_baud = 115200
|
|
|
|
|
2018-02-10 14:13:27 +00:00
|
|
|
[env:sonoff-IT]
|
2018-02-27 13:59:46 +00:00
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
2018-01-18 15:19:28 +00:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
2018-02-10 14:13:27 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=it-IT
|
2018-04-02 10:24:36 +01:00
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=it-IT -DUSE_CONFIG_OVERRIDE
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2018-01-18 15:19:28 +00:00
|
|
|
|
|
|
|
; *** Serial Monitor options
|
|
|
|
monitor_baud = 115200
|
|
|
|
|
2018-02-10 14:13:27 +00:00
|
|
|
[env:sonoff-NL]
|
2018-02-27 13:59:46 +00:00
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
2018-01-18 15:19:28 +00:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
2018-02-10 14:13:27 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=nl-NL
|
2018-04-02 10:24:36 +01:00
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=nl-NL -DUSE_CONFIG_OVERRIDE
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2018-01-18 15:19:28 +00:00
|
|
|
|
|
|
|
; *** Serial Monitor options
|
2017-12-28 12:43:51 +00:00
|
|
|
monitor_baud = 115200
|
|
|
|
|
2018-02-10 14:13:27 +00:00
|
|
|
[env:sonoff-PL]
|
2018-02-27 13:59:46 +00:00
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
2017-06-01 16:37:30 +01:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
2017-07-14 12:00:08 +01:00
|
|
|
board_flash_mode = dout
|
2018-02-10 14:13:27 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=pl-PL
|
2018-04-02 10:24:36 +01:00
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=pl-PL -DUSE_CONFIG_OVERRIDE
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2017-06-01 16:37:30 +01:00
|
|
|
|
2018-02-10 14:13:27 +00:00
|
|
|
; *** Serial Monitor options
|
2017-09-02 16:24:05 +01:00
|
|
|
monitor_baud = 115200
|
|
|
|
|
2018-02-28 17:01:40 +00:00
|
|
|
[env:sonoff-PT]
|
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=pt-PT
|
2018-04-02 10:24:36 +01:00
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=pt-PT -DUSE_CONFIG_OVERRIDE
|
2018-02-28 17:01:40 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
|
|
|
|
|
|
|
; *** Serial Monitor options
|
|
|
|
monitor_baud = 115200
|
|
|
|
|
2018-02-16 16:35:51 +00:00
|
|
|
[env:sonoff-RU]
|
2018-02-27 13:59:46 +00:00
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
2018-02-16 16:35:51 +00:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=ru-RU
|
2018-04-02 10:24:36 +01:00
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=ru-RU -DUSE_CONFIG_OVERRIDE
|
2018-02-16 16:35:51 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
|
|
|
|
|
|
|
; *** Serial Monitor options
|
|
|
|
monitor_baud = 115200
|
|
|
|
|
2018-02-10 14:13:27 +00:00
|
|
|
[env:sonoff-CN]
|
2018-02-27 13:59:46 +00:00
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
2017-06-01 16:37:30 +01:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
2017-07-14 12:00:08 +01:00
|
|
|
board_flash_mode = dout
|
2018-02-10 14:13:27 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=zh-CN
|
2018-04-02 10:24:36 +01:00
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=zh-CN -DUSE_CONFIG_OVERRIDE
|
|
|
|
extra_scripts = pio/strip-floats.py
|
|
|
|
|
|
|
|
; *** Serial Monitor options
|
|
|
|
monitor_baud = 115200
|
|
|
|
|
|
|
|
[env:sonoff-TW]
|
|
|
|
;platform = espressif8266@1.5.0 ; v2.3.0
|
|
|
|
;platform = espressif8266@1.6.0 ; v2.4.0
|
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=zh-TW
|
|
|
|
;build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=zh-TW -DUSE_CONFIG_OVERRIDE
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2017-09-02 16:24:05 +01:00
|
|
|
|
2018-02-10 14:13:27 +00:00
|
|
|
; *** Serial Monitor options
|
2017-09-02 16:24:05 +01:00
|
|
|
monitor_baud = 115200
|