Tasmota/platformio.ini

334 lines
11 KiB
INI
Raw Normal View History

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
; *** Uncomment one of the lines below to build/upload only one environment
2018-05-02 04:32:29 +01:00
;env_default = sonoff-DE_4MB
;env_default = sonoff-EN_4MB
;env_default = sonoff-ES_4MB
;env_default = sonoff-minimal
2018-04-20 15:07:06 +01:00
;env_default = sonoff-BG
;env_default = sonoff-CN
;env_default = sonoff-CZ
;env_default = sonoff-DE
2018-05-02 04:32:29 +01:00
;env_default = sonoff-EN
;env_default = sonoff-ES
;env_default = sonoff-FR
;env_default = sonoff-GR
;env_default = sonoff-HU
;env_default = sonoff-IT
;env_default = sonoff-NL
;env_default = sonoff-PL
2018-05-11 17:34:21 +01:00
;env_default = sonoff-PT_PT
;env_default = sonoff-PT_BR
;env_default = sonoff-RU
;env_default = sonoff-TW
2018-04-25 13:42:54 +01:00
[common] ; ************************************************************
; *** Esp8266 core for Arduino version
2018-05-02 04:32:29 +01:00
platform = espressif8266@1.5.0 ; v2.3.0
2018-04-25 13:42:54 +01:00
;platform = espressif8266@1.6.0 ; v2.4.0
;platform = espressif8266@1.7.0 ; v2.4.1
2018-04-25 13:42:54 +01:00
;platform = https://github.com/platformio/platform-espressif8266.git#feature/stage
2018-05-02 04:32:29 +01:00
;platform = espressif8266
2018-04-25 13:42:54 +01:00
2017-01-28 15:44:00 +00:00
framework = arduino
board = esp01_1m
2017-05-07 14:57:59 +01:00
board_flash_mode = dout
; *** Fix espressif8266@1.7.0 induced undesired all warnings
build_unflags = -Wall
build_flags =
-Wl,-Tesp8266.flash.1m0.ld
-DVTABLES_IN_FLASH
2018-05-02 04:59:56 +01:00
-DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
; -DUSE_CONFIG_OVERRIDE
2018-05-14 04:53:48 +01:00
-DUSE_KNX_NO_EMULATION
2018-05-02 04:32:29 +01:00
build_flags_4MB =
-Wl,-Tesp8266.flash.4m1m.ld
-DVTABLES_IN_FLASH
-DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
; -DUSE_CONFIG_OVERRIDE
2018-05-14 04:53:48 +01:00
-DUSE_KNX_NO_EMULATION
; *** Fix Esp/Arduino core 2.4.x induced Tasmota unused floating point includes
2018-02-03 15:36:25 +00:00
extra_scripts = pio/strip-floats.py
; *** Serial Monitor options
2017-09-02 16:24:05 +01:00
monitor_baud = 115200
; *** Upload Serial reset method for Wemos and NodeMCU
2018-05-02 04:32:29 +01:00
upload_speed = 115200
;upload_speed = 512000
2018-04-25 13:42:54 +01:00
upload_resetmethod = nodemcu
2018-04-26 09:12:44 +01:00
upload_port = COM5
2018-05-11 17:34:21 +01:00
;NOTE - command to erase flash from windows console: esptool.py --port COM18 erase_flash
2018-05-02 04:32:29 +01:00
; *** Upload file to OTA server using SCP
;upload_port = user@host:/path
;extra_scripts = pio/strip-floats.py, pio/sftp-uploader.py
; *** Upload file to OTA server using HTTP
2018-04-26 09:12:44 +01:00
;upload_port = domus1:80/api/upload-arduino.php
;extra_scripts = pio/strip-floats.py, pio/http-uploader.py
2018-04-25 13:42:54 +01:00
; *********************************************************************
2018-05-02 04:32:29 +01:00
[env:sonoff-DE_4MB]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
2018-05-02 04:32:29 +01:00
build_flags = ${common.build_flags_4MB} -DMY_LANGUAGE=de-DE
2018-04-25 13:42:54 +01:00
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
2017-09-02 16:24:05 +01:00
2018-05-02 04:32:29 +01:00
[env:sonoff-EN_4MB]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
2018-05-02 04:32:29 +01:00
build_flags = ${common.build_flags_4MB}
2018-04-25 13:42:54 +01:00
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
2018-05-02 04:32:29 +01:00
upload_resetmethod = ${common.upload_resetmethod}
2018-04-25 13:42:54 +01:00
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
2017-09-02 16:24:05 +01:00
2018-05-02 04:32:29 +01:00
[env:sonoff-ES_4MB]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
2018-05-02 04:32:29 +01:00
build_flags = ${common.build_flags_4MB} -DMY_LANGUAGE=es-AR
2018-04-25 13:42:54 +01:00
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
2018-05-02 04:32:29 +01:00
upload_resetmethod = ${common.upload_resetmethod}
2018-04-25 13:42:54 +01:00
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
2018-05-02 04:32:29 +01:00
[env:sonoff-minimal]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
2018-05-02 04:32:29 +01:00
build_flags = ${common.build_flags} -DBE_MINIMAL
2018-04-25 13:42:54 +01:00
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
2018-05-02 04:32:29 +01:00
[env:sonoff-BG]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
2018-05-02 04:32:29 +01:00
build_flags = ${common.build_flags} -DMY_LANGUAGE=bg-BG
2018-04-25 13:42:54 +01:00
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
2018-04-20 15:07:06 +01:00
2018-05-02 04:32:29 +01:00
[env:sonoff-CN]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
2018-05-02 04:32:29 +01:00
build_flags = ${common.build_flags} -DMY_LANGUAGE=zh-CN
2018-04-25 13:42:54 +01:00
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
2018-05-02 04:32:29 +01:00
[env:sonoff-CZ]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
2018-05-02 04:32:29 +01:00
build_flags = ${common.build_flags} -DMY_LANGUAGE=cs-CZ
2018-04-25 13:42:54 +01:00
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
2018-05-02 04:32:29 +01:00
[env:sonoff-DE]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
2018-05-02 04:32:29 +01:00
build_flags = ${common.build_flags} -DMY_LANGUAGE=de-DE
2018-04-25 13:42:54 +01:00
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
2018-05-02 04:32:29 +01:00
[env:sonoff-EN]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
2018-05-02 04:32:29 +01:00
build_flags = ${common.build_flags}
2018-04-25 13:42:54 +01:00
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
2018-05-02 04:32:29 +01:00
upload_resetmethod = ${common.upload_resetmethod}
2018-04-25 13:42:54 +01:00
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-ES]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=es-AR
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-FR]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=fr-FR
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-GR]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=el-GR
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-HU]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=hu-HU
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-IT]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=it-IT
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-NL]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=nl-NL
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-PL]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=pl-PL
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
2017-09-02 16:24:05 +01:00
2018-05-11 17:34:21 +01:00
[env:sonoff-PT_PT]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=pt-PT
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
2018-05-11 17:34:21 +01:00
[env:sonoff-PT_BR]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=pt-BR
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-RU]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=ru-RU
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}
[env:sonoff-TW]
2018-04-25 13:42:54 +01:00
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=zh-TW
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}