mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-10 03:17:42 +00:00
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-PT
|
||||||
;env_default = sonoff-RU
|
;env_default = sonoff-RU
|
||||||
;env_default = sonoff-SE
|
;env_default = sonoff-SE
|
||||||
|
;env_default = sonoff-SK
|
||||||
;env_default = sonoff-TR
|
;env_default = sonoff-TR
|
||||||
;env_default = sonoff-TW
|
;env_default = sonoff-TW
|
||||||
;env_default = sonoff-UK
|
;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
|
; *** 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
|
; *** 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
|
; *** Esp8266 core for Arduino version latest beta
|
||||||
;platform = https://github.com/platformio/platform-espressif8266.git#feature/stage
|
platform = https://github.com/platformio/platform-espressif8266.git#feature/stage
|
||||||
; *** Esp8266 core for Arduino current version (located in %USERPROFILE%\.platformio\platforms\espressif8266)
|
build_flags = ${esp82xx_defaults.build_flags}
|
||||||
;platform = espressif8266
|
-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
|
[core_active]
|
||||||
board = esp01_1m
|
; Select one core set for platform and build_flags
|
||||||
board_build.flash_mode = dout
|
;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
|
[common]
|
||||||
board_build.f_cpu = 80000000L
|
framework = arduino
|
||||||
;board_build.f_cpu = 160000000L
|
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
|
; *** Fix espressif8266@1.7.0 induced undesired all warnings
|
||||||
build_unflags = -Wall
|
build_unflags = -Wall
|
||||||
|
|
||||||
build_flags =
|
; set CPU frequency to 80MHz (default) or 160MHz
|
||||||
; if using esp8266 core 2.5.0 (stage) or up
|
board_build.f_cpu = 80000000L
|
||||||
; -Wl,-Tesp8266.flash.1m.ld -Wl,-Map,firmware.map
|
;board_build.f_cpu = 160000000L
|
||||||
; 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
|
|
||||||
|
|
||||||
; if using esp8266 core 2.5.0 (stage) or up
|
monitor_speed = 115200
|
||||||
; No exception code in firmware
|
upload_speed = 115200
|
||||||
; -fno-exceptions
|
upload_resetmethod = nodemcu
|
||||||
; -lstdc++-nox
|
|
||||||
|
|
||||||
; *** Serial Monitor options
|
|
||||||
monitor_speed = 115200
|
|
||||||
|
|
||||||
; *** Upload Serial reset method for Wemos and NodeMCU
|
; *** Upload Serial reset method for Wemos and NodeMCU
|
||||||
upload_speed = 115200
|
upload_port = COM5
|
||||||
upload_resetmethod = nodemcu
|
extra_scripts = pio/strip-floats.py
|
||||||
upload_port = COM5
|
|
||||||
|
|
||||||
; *** Fix Esp/Arduino core 2.4.x induced Tasmota unused floating point includes
|
|
||||||
extra_scripts = pio/strip-floats.py
|
|
||||||
|
|
||||||
; *** Upload file to OTA server using SCP
|
; *** Upload file to OTA server using SCP
|
||||||
;upload_port = user@host:/path
|
;upload_port = user@host:/path
|
||||||
;extra_scripts = pio/strip-floats.py, pio/sftp-uploader.py
|
;extra_scripts = pio/strip-floats.py, pio/sftp-uploader.py
|
||||||
|
|
||||||
; *** Upload file to OTA server using HTTP
|
; *** Upload file to OTA server in folder api/arduino using HTTP
|
||||||
;upload_port = domus1:80/api/upload-arduino.php
|
;upload_port = domus1:80/api/upload-arduino.php
|
||||||
;extra_scripts = pio/strip-floats.py, pio/http-uploader.py
|
;extra_scripts = pio/strip-floats.py, pio/http-uploader.py
|
||||||
|
|
||||||
; *********************************************************************
|
; *********************************************************************
|
||||||
|
|
||||||
@ -420,6 +485,20 @@ upload_resetmethod = ${common.upload_resetmethod}
|
|||||||
upload_speed = ${common.upload_speed}
|
upload_speed = ${common.upload_speed}
|
||||||
extra_scripts = ${common.extra_scripts}
|
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]
|
[env:sonoff-TR]
|
||||||
platform = ${common.platform}
|
platform = ${common.platform}
|
||||||
framework = ${common.framework}
|
framework = ${common.framework}
|
||||||
|
@ -209,6 +209,7 @@
|
|||||||
//#define MY_LANGUAGE pt-BR // Portuguese in Brazil
|
//#define MY_LANGUAGE pt-BR // Portuguese in Brazil
|
||||||
//#define MY_LANGUAGE pt-PT // Portuguese in Portugal
|
//#define MY_LANGUAGE pt-PT // Portuguese in Portugal
|
||||||
//#define MY_LANGUAGE ru-RU // Russian in Russia
|
//#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 sv-SE // Swedish in Sweden
|
||||||
//#define MY_LANGUAGE tr-TR // Turkish in Turkey
|
//#define MY_LANGUAGE tr-TR // Turkish in Turkey
|
||||||
//#define MY_LANGUAGE uk-UK // Ukrainian in Ukrain
|
//#define MY_LANGUAGE uk-UK // Ukrainian in Ukrain
|
||||||
|
Loading…
x
Reference in New Issue
Block a user