mirror of https://github.com/arendst/Tasmota.git
Updated from originals: platformio.ini, sonoff/my_user_config.h.
This commit is contained in:
parent
ff1e51613e
commit
6185a08d89
165
platformio.ini
165
platformio.ini
|
@ -34,67 +34,132 @@ src_dir = sonoff
|
|||
;env_default = sonoff-PT
|
||||
;env_default = sonoff-RU
|
||||
;env_default = sonoff-SE
|
||||
;env_default = sonoff-SK
|
||||
;env_default = sonoff-TR
|
||||
;env_default = sonoff-TW
|
||||
;env_default = sonoff-UK
|
||||
|
||||
[common] ; ************************************************************
|
||||
[esp82xx_defaults]
|
||||
build_flags = -D NDEBUG
|
||||
-mtarget-align
|
||||
-Wl,-Map,firmware.map
|
||||
|
||||
[core_2_3_0]
|
||||
; *** Esp8266 core for Arduino version 2.3.0
|
||||
;platform = espressif8266@1.5.0
|
||||
platform = espressif8266@1.5.0
|
||||
build_flags = ${esp82xx_defaults.build_flags}
|
||||
-Wl,-Tesp8266.flash.1m0.ld
|
||||
|
||||
[core_2_4_2]
|
||||
; *** Esp8266 core for Arduino version 2.4.2
|
||||
platform = espressif8266@1.8.0
|
||||
platform = espressif8266@1.8.0
|
||||
build_flags = ${esp82xx_defaults.build_flags}
|
||||
-Wl,-Teagle.flash.1m0.ld
|
||||
-lstdc++ -lsupc++
|
||||
; lwIP 1.4 (Default)
|
||||
; -DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH
|
||||
; lwIP 2 - Low Memory
|
||||
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
|
||||
; lwIP 2 - Higher Bandwidth (Tasmota default)
|
||||
-DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
|
||||
-DVTABLES_IN_FLASH
|
||||
|
||||
[core_2_5_0]
|
||||
; *** Esp8266 core for Arduino version Core 2.5.0 beta tested for Tasmota
|
||||
platform = https://github.com/Jason2866/platform-espressif8266.git#Tasmota
|
||||
build_flags = ${esp82xx_defaults.build_flags}
|
||||
-Wl,-Teagle.flash.1m.ld
|
||||
; lwIP 1.4 (Default)
|
||||
; -DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH
|
||||
; lwIP 2 - Low Memory
|
||||
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
|
||||
; lwIP 2 - Higher Bandwidth
|
||||
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
|
||||
; lwIP 2 - Higher Bandwidth Low Memory no Features
|
||||
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY_LOW_FLASH
|
||||
; lwIP 2 - Higher Bandwidth no Features (Tasmota default)
|
||||
-DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH
|
||||
-DVTABLES_IN_FLASH
|
||||
-fno-exceptions
|
||||
-lstdc++-nox
|
||||
|
||||
[core_stage]
|
||||
; *** Esp8266 core for Arduino version latest beta
|
||||
;platform = https://github.com/platformio/platform-espressif8266.git#feature/stage
|
||||
; *** Esp8266 core for Arduino current version (located in %USERPROFILE%\.platformio\platforms\espressif8266)
|
||||
;platform = espressif8266
|
||||
platform = https://github.com/platformio/platform-espressif8266.git#feature/stage
|
||||
build_flags = ${esp82xx_defaults.build_flags}
|
||||
-Wl,-Teagle.flash.1m.ld
|
||||
; lwIP 1.4 (Default)
|
||||
; -DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH
|
||||
; lwIP 2 - Low Memory
|
||||
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
|
||||
; lwIP 2 - Higher Bandwidth
|
||||
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
|
||||
; lwIP 2 - Higher Bandwitdh Low Memory no Features
|
||||
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY_LOW_FLASH
|
||||
; lwIP 2 - Higher Bandwitdh no Features
|
||||
-DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH
|
||||
; VTABLES in Flash (default)
|
||||
-DVTABLES_IN_FLASH
|
||||
; VTABLES in Heap
|
||||
; -DVTABLES_IN_DRAM
|
||||
; VTABLES in IRAM
|
||||
; -DVTABLES_IN_IRAM
|
||||
; enable one option set -> No exception recommended
|
||||
; No exception code in firmware
|
||||
-fno-exceptions
|
||||
-lstdc++-nox
|
||||
; Exception code in firmware /needs much space! 90k
|
||||
; -fexceptions
|
||||
; -lstdc++
|
||||
|
||||
framework = arduino
|
||||
board = esp01_1m
|
||||
board_build.flash_mode = dout
|
||||
[core_active]
|
||||
; Select one core set for platform and build_flags
|
||||
;platform = ${core_2_3_0.platform}
|
||||
;build_flags = ${core_2_3_0.build_flags}
|
||||
platform = ${core_2_4_2.platform}
|
||||
build_flags = ${core_2_4_2.build_flags}
|
||||
;platform = ${core_2_5_0.platform}
|
||||
;build_flags = ${core_2_5_0.build_flags}
|
||||
;platform = ${core_stage.platform}
|
||||
;build_flags = ${core_stage.build_flags}
|
||||
|
||||
; set CPU frequency to 80MHz (default) or 160MHz
|
||||
board_build.f_cpu = 80000000L
|
||||
;board_build.f_cpu = 160000000L
|
||||
[common]
|
||||
framework = arduino
|
||||
board = esp01_1m
|
||||
board_build.flash_mode = dout
|
||||
|
||||
platform = ${core_active.platform}
|
||||
build_flags = ${core_active.build_flags}
|
||||
; -DUSE_CLASSIC
|
||||
; -DBE_MINIMAL
|
||||
; -DUSE_SENSORS
|
||||
; -DUSE_BASIC
|
||||
; -DUSE_KNX_NO_EMULATION
|
||||
; -DUSE_DISPLAYS
|
||||
; -DUSE_CONFIG_OVERRIDE
|
||||
|
||||
; *** Fix espressif8266@1.7.0 induced undesired all warnings
|
||||
build_unflags = -Wall
|
||||
build_unflags = -Wall
|
||||
|
||||
build_flags =
|
||||
; if using esp8266 core 2.5.0 (stage) or up
|
||||
; -Wl,-Tesp8266.flash.1m.ld -Wl,-Map,firmware.map
|
||||
; if using esp8266 core < 2.5.0
|
||||
-Wl,-Tesp8266.flash.1m0.ld -Wl,-Map,firmware.map
|
||||
-mtarget-align
|
||||
; -DUSE_CONFIG_OVERRIDE
|
||||
; lwIP 2 - Higher Bandwitdh (core 2.4.2)
|
||||
-DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
|
||||
; lwIP 2 - Higher Bandwitdh no Features (core 2.5.0)
|
||||
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH
|
||||
-DVTABLES_IN_FLASH
|
||||
; set CPU frequency to 80MHz (default) or 160MHz
|
||||
board_build.f_cpu = 80000000L
|
||||
;board_build.f_cpu = 160000000L
|
||||
|
||||
; if using esp8266 core 2.5.0 (stage) or up
|
||||
; No exception code in firmware
|
||||
; -fno-exceptions
|
||||
; -lstdc++-nox
|
||||
|
||||
; *** Serial Monitor options
|
||||
monitor_speed = 115200
|
||||
monitor_speed = 115200
|
||||
upload_speed = 115200
|
||||
upload_resetmethod = nodemcu
|
||||
|
||||
; *** Upload Serial reset method for Wemos and NodeMCU
|
||||
upload_speed = 115200
|
||||
upload_resetmethod = nodemcu
|
||||
upload_port = COM5
|
||||
|
||||
; *** Fix Esp/Arduino core 2.4.x induced Tasmota unused floating point includes
|
||||
extra_scripts = pio/strip-floats.py
|
||||
upload_port = COM5
|
||||
extra_scripts = pio/strip-floats.py
|
||||
|
||||
; *** Upload file to OTA server using SCP
|
||||
;upload_port = user@host:/path
|
||||
;extra_scripts = pio/strip-floats.py, pio/sftp-uploader.py
|
||||
;upload_port = user@host:/path
|
||||
;extra_scripts = pio/strip-floats.py, pio/sftp-uploader.py
|
||||
|
||||
; *** Upload file to OTA server using HTTP
|
||||
;upload_port = domus1:80/api/upload-arduino.php
|
||||
;extra_scripts = pio/strip-floats.py, pio/http-uploader.py
|
||||
; *** Upload file to OTA server in folder api/arduino using HTTP
|
||||
;upload_port = domus1:80/api/upload-arduino.php
|
||||
;extra_scripts = pio/strip-floats.py, pio/http-uploader.py
|
||||
|
||||
; *********************************************************************
|
||||
|
||||
|
@ -420,6 +485,20 @@ upload_resetmethod = ${common.upload_resetmethod}
|
|||
upload_speed = ${common.upload_speed}
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
|
||||
[env:sonoff-SK]
|
||||
platform = ${common.platform}
|
||||
framework = ${common.framework}
|
||||
board = ${common.board}
|
||||
board_build.flash_mode = ${common.board_build.flash_mode}
|
||||
board_build.f_cpu = ${common.board_build.f_cpu}
|
||||
build_unflags = ${common.build_unflags}
|
||||
build_flags = ${common.build_flags} -DMY_LANGUAGE=sk-SK
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
upload_port = ${common.upload_port}
|
||||
upload_resetmethod = ${common.upload_resetmethod}
|
||||
upload_speed = ${common.upload_speed}
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
|
||||
[env:sonoff-TR]
|
||||
platform = ${common.platform}
|
||||
framework = ${common.framework}
|
||||
|
|
|
@ -209,6 +209,7 @@
|
|||
//#define MY_LANGUAGE pt-BR // Portuguese in Brazil
|
||||
//#define MY_LANGUAGE pt-PT // Portuguese in Portugal
|
||||
//#define MY_LANGUAGE ru-RU // Russian in Russia
|
||||
//#define MY_LANGUAGE sk-SK // Slovak in Slovakia
|
||||
//#define MY_LANGUAGE sv-SE // Swedish in Sweden
|
||||
//#define MY_LANGUAGE tr-TR // Turkish in Turkey
|
||||
//#define MY_LANGUAGE uk-UK // Ukrainian in Ukrain
|
||||
|
|
Loading…
Reference in New Issue