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
|
|
|
|
|
|
|
|
|
2020-09-11 09:11:18 +01:00
|
|
|
; *** Tasmota build variant selection
|
|
|
|
[build_envs]
|
2020-05-07 15:23:05 +01:00
|
|
|
default_envs =
|
2019-11-01 10:44:18 +00:00
|
|
|
; *** Uncomment by deleting ";" in the line(s) below to select version(s)
|
2019-11-14 16:30:03 +00:00
|
|
|
; tasmota
|
2020-05-07 15:23:05 +01:00
|
|
|
; tasmota-ircustom
|
2019-11-01 10:25:08 +00:00
|
|
|
; tasmota-minimal
|
2019-12-17 14:13:47 +00:00
|
|
|
; tasmota-lite
|
2019-11-01 10:25:08 +00:00
|
|
|
; tasmota-knx
|
|
|
|
; tasmota-sensors
|
|
|
|
; tasmota-display
|
2020-07-28 08:25:48 +01:00
|
|
|
; tasmota-zbbridge
|
2019-11-01 10:25:08 +00:00
|
|
|
; tasmota-ir
|
|
|
|
; tasmota-BG
|
|
|
|
; tasmota-BR
|
|
|
|
; tasmota-CN
|
|
|
|
; tasmota-CZ
|
|
|
|
; tasmota-DE
|
|
|
|
; tasmota-ES
|
|
|
|
; tasmota-FR
|
|
|
|
; tasmota-GR
|
|
|
|
; tasmota-HE
|
|
|
|
; tasmota-HU
|
|
|
|
; tasmota-IT
|
|
|
|
; tasmota-KO
|
|
|
|
; tasmota-NL
|
|
|
|
; tasmota-PL
|
|
|
|
; tasmota-PT
|
2020-03-04 10:56:35 +00:00
|
|
|
; tasmota-RO
|
2019-11-01 10:25:08 +00:00
|
|
|
; tasmota-RU
|
|
|
|
; tasmota-SE
|
|
|
|
; tasmota-SK
|
|
|
|
; tasmota-TR
|
|
|
|
; tasmota-TW
|
|
|
|
; tasmota-UK
|
2020-10-12 10:29:36 +01:00
|
|
|
; tasmota-VN
|
2019-11-29 10:14:26 +00:00
|
|
|
;
|
2020-09-11 09:11:18 +01:00
|
|
|
; *** Selection for Tasmota ESP32 is done in platformio_tasmota32.ini
|
|
|
|
;
|
2019-11-29 15:15:12 +00:00
|
|
|
; *** alternatively can be done in: platformio_override.ini
|
2019-11-29 13:59:57 +00:00
|
|
|
; *** See example: platformio_override_sample.ini
|
2019-11-29 10:14:26 +00:00
|
|
|
; *********************************************************************
|
|
|
|
|
2020-09-11 09:11:18 +01:00
|
|
|
[platformio]
|
|
|
|
description = Provide ESP8266 / ESP32 based devices with Web, MQTT and OTA firmware
|
|
|
|
src_dir = tasmota
|
|
|
|
build_cache_dir = .cache
|
|
|
|
extra_configs = platformio_tasmota32.ini
|
|
|
|
platformio_tasmota_env.ini
|
|
|
|
platformio_tasmota_env32.ini
|
|
|
|
platformio_override.ini
|
|
|
|
default_envs = ${build_envs.default_envs}
|
2017-06-03 21:13:35 +01:00
|
|
|
|
2019-11-01 10:03:10 +00:00
|
|
|
[common]
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_build.flash_mode = dout
|
2020-04-07 08:28:39 +01:00
|
|
|
board_build.ldscript = eagle.flash.1m.ld
|
2019-11-01 10:03:10 +00:00
|
|
|
|
2020-06-19 19:14:59 +01:00
|
|
|
platform = ${core.platform}
|
|
|
|
platform_packages = ${core.platform_packages}
|
|
|
|
build_unflags = ${core.build_unflags}
|
|
|
|
build_flags = ${core.build_flags}
|
2019-11-01 10:03:10 +00:00
|
|
|
|
|
|
|
board_build.f_cpu = 80000000L
|
2020-06-02 20:46:56 +01:00
|
|
|
board_build.f_flash = 40000000L
|
2019-11-01 10:03:10 +00:00
|
|
|
monitor_speed = 115200
|
|
|
|
upload_speed = 115200
|
|
|
|
; *** Upload Serial reset method for Wemos and NodeMCU
|
2019-11-29 10:14:26 +00:00
|
|
|
upload_resetmethod = nodemcu
|
2019-11-01 10:03:10 +00:00
|
|
|
upload_port = COM5
|
2019-11-29 10:14:26 +00:00
|
|
|
extra_scripts = ${scripts_defaults.extra_scripts}
|
2020-09-05 22:22:51 +01:00
|
|
|
|
2019-11-29 10:14:26 +00:00
|
|
|
[scripts_defaults]
|
2019-11-01 10:03:10 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2019-11-16 19:18:17 +00:00
|
|
|
pio/name-firmware.py
|
2020-03-21 14:57:59 +00:00
|
|
|
pio/gzip-firmware.py
|
2020-05-06 15:22:27 +01:00
|
|
|
pio/override_copy.py
|
2019-11-01 10:03:10 +00:00
|
|
|
|
2020-04-16 18:46:26 +01:00
|
|
|
[esp_defaults]
|
2020-07-29 14:17:15 +01:00
|
|
|
; *** remove undesired all warnings
|
2020-06-19 19:14:59 +01:00
|
|
|
build_unflags = -Wall
|
2020-08-17 14:24:53 +01:00
|
|
|
-Wdeprecated-declarations
|
|
|
|
build_flags = -Wno-deprecated-declarations
|
|
|
|
-D_IR_ENABLE_DEFAULT_=false
|
2020-04-16 18:46:26 +01:00
|
|
|
-DDECODE_HASH=true -DDECODE_NEC=true -DSEND_NEC=true
|
|
|
|
-DDECODE_RC5=true -DSEND_RC5=true -DDECODE_RC6=true -DSEND_RC6=true
|
|
|
|
; new mechanism to set the IRremoteESP8266 supported protocols: none except HASH, NEC, RC5, RC6
|
2020-06-19 19:14:59 +01:00
|
|
|
; *********************************************************************
|
2020-06-19 17:16:55 +01:00
|
|
|
; *** Use custom settings from file user_config_override.h
|
|
|
|
-DUSE_CONFIG_OVERRIDE
|
2020-06-19 19:14:59 +01:00
|
|
|
; *********************************************************************
|
|
|
|
|
2020-04-16 18:46:26 +01:00
|
|
|
|
2018-12-17 14:29:21 +00:00
|
|
|
[esp82xx_defaults]
|
2020-04-16 18:46:26 +01:00
|
|
|
build_flags = ${esp_defaults.build_flags}
|
2018-12-17 14:29:21 +00:00
|
|
|
-Wl,-Map,firmware.map
|
2020-08-17 14:24:53 +01:00
|
|
|
-D CORE_DEBUG_LEVEL=0
|
2020-04-16 18:46:26 +01:00
|
|
|
-D NDEBUG
|
|
|
|
-mtarget-align
|
2020-04-07 08:28:39 +01:00
|
|
|
-DFP_IN_IROM
|
2020-05-08 08:50:03 +01:00
|
|
|
-DBEARSSL_SSL_BASIC
|
|
|
|
; NONOSDK22x_190703 = 2.2.2-dev(38a443e)
|
|
|
|
-DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703
|
|
|
|
; lwIP 2 - Higher Bandwidth no Features
|
|
|
|
-DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH
|
|
|
|
; VTABLES in Flash
|
2020-07-29 14:17:15 +01:00
|
|
|
-DVTABLES_IN_FLASH
|
|
|
|
; remove the 4-bytes alignment for PSTR()
|
2020-05-18 19:06:47 +01:00
|
|
|
-DPSTR_ALIGN=1
|
|
|
|
; restrict to minimal mime-types
|
|
|
|
-DMIMETYPE_MINIMAL
|
2020-04-16 18:46:26 +01:00
|
|
|
|
|
|
|
[irremoteesp_full]
|
2020-02-03 18:41:35 +00:00
|
|
|
build_flags = -DUSE_IR_REMOTE_FULL
|
2020-02-07 21:48:34 +00:00
|
|
|
-U_IR_ENABLE_DEFAULT_
|
|
|
|
-DDECODE_PRONTO=false -DSEND_PRONTO=false
|
2019-11-10 16:42:21 +00:00
|
|
|
|
2019-11-29 10:14:26 +00:00
|
|
|
|
2020-06-19 19:14:59 +01:00
|
|
|
[core]
|
2020-08-17 14:24:53 +01:00
|
|
|
; *** Esp8266 Tasmota modified Arduino core based on core 2.7.4
|
2020-08-16 18:56:13 +01:00
|
|
|
platform = espressif8266@2.6.2
|
2020-10-10 20:39:51 +01:00
|
|
|
platform_packages = tasmota/framework-arduinoespressif8266
|
2020-06-19 19:14:59 +01:00
|
|
|
build_unflags = ${esp_defaults.build_unflags}
|
2018-12-17 14:29:21 +00:00
|
|
|
build_flags = ${esp82xx_defaults.build_flags}
|