2018-11-08 23:57:50 +01:00
|
|
|
; PlatformIO Project Configuration File
|
2018-11-14 00:05:06 +01:00
|
|
|
; Please visit documentation: https://docs.platformio.org/page/projectconf.html
|
2018-11-08 23:57:50 +01:00
|
|
|
|
|
|
|
[platformio]
|
2018-11-14 00:05:06 +01:00
|
|
|
src_dir = ./wled00
|
|
|
|
data_dir = ./wled00/data
|
2019-12-18 15:35:32 +01:00
|
|
|
;lib_extra_dirs = ./wled00/src
|
|
|
|
lib_dir = ./wled00/src
|
2020-02-24 16:42:24 +01:00
|
|
|
extra_configs = platformio_override.ini
|
2019-03-24 18:28:36 +01:00
|
|
|
; Please uncomment one of the 5 lines below to select your board
|
2020-01-24 23:18:27 +01:00
|
|
|
default_envs = nodemcuv2
|
|
|
|
; default_envs = esp01
|
|
|
|
; default_envs = esp01_1m
|
|
|
|
; default_envs = esp07
|
|
|
|
; default_envs = d1_mini
|
|
|
|
; default_envs = esp32dev
|
|
|
|
; default_envs = esp8285_4CH_MagicHome
|
|
|
|
; default_envs = esp8285_4CH_H801
|
|
|
|
; default_envs = esp8285_5CH_H801
|
2020-02-24 12:44:41 +01:00
|
|
|
# Release binaries follow
|
|
|
|
; default_envs = nodemcuv2, esp01, esp01_1m, esp32dev,
|
|
|
|
|
|
|
|
|
2018-11-11 19:34:19 +01:00
|
|
|
|
2018-11-14 00:05:06 +01:00
|
|
|
[common]
|
|
|
|
framework = arduino
|
|
|
|
monitor_speed = 115200
|
|
|
|
board_build.flash_mode = dout
|
2019-03-18 18:13:04 +01:00
|
|
|
upload_speed = 115200
|
|
|
|
upload_speed_fast = 921600
|
2018-11-14 20:21:36 +01:00
|
|
|
build_flags =
|
2019-03-18 18:13:04 +01:00
|
|
|
-w ; supresses all C/C++ warnings
|
2019-09-12 12:40:06 +02:00
|
|
|
; -D VERSION=0.8.5
|
2018-11-14 20:21:36 +01:00
|
|
|
; -D DEBUG
|
2020-01-10 21:12:23 +01:00
|
|
|
#build_flags for the IRremoteESP8266 library (enabled decoders have to appear here)
|
|
|
|
-D _IR_ENABLE_DEFAULT_=false
|
|
|
|
-D DECODE_HASH=true
|
2020-01-20 11:44:19 +01:00
|
|
|
-D DECODE_NEC=true
|
2020-01-10 21:12:23 +01:00
|
|
|
-D DECODE_SONY=true
|
|
|
|
-D DECODE_SAMSUNG=true
|
|
|
|
-D DECODE_LG=true
|
2020-01-19 15:20:40 +01:00
|
|
|
|
2018-11-14 00:05:06 +01:00
|
|
|
# TODO replace libs in /lib with managed libs in here if possible.
|
2018-12-06 16:31:52 +01:00
|
|
|
# If they are not changed it's just a matter of setting the correct version and change the import statement
|
2018-11-14 00:05:06 +01:00
|
|
|
lib_deps_external =
|
2019-02-22 22:53:39 +01:00
|
|
|
#Blynk@0.5.4(changed)
|
|
|
|
#E131@1.0.0(changed)
|
2019-09-12 13:08:07 +02:00
|
|
|
FastLED@3.3.2
|
2020-01-14 19:12:23 +01:00
|
|
|
NeoPixelBus@2.5.6
|
2019-02-22 22:53:39 +01:00
|
|
|
ESPAsyncTCP@1.2.0
|
2019-12-18 15:35:32 +01:00
|
|
|
ESPAsyncUDP@697c75a025
|
2019-02-22 22:53:39 +01:00
|
|
|
AsyncTCP@1.0.3
|
2019-03-07 16:35:02 +01:00
|
|
|
Esp Async WebServer@1.2.0
|
2019-03-06 21:31:12 +01:00
|
|
|
#ArduinoJson@5.13.5
|
2020-01-10 21:12:23 +01:00
|
|
|
#IRremoteESP8266@2.7.2
|
2020-01-19 15:20:40 +01:00
|
|
|
https://github.com/crankyoldgit/IRremoteESP8266.git
|
2018-11-14 00:05:06 +01:00
|
|
|
#Time@1.5
|
|
|
|
#Timezone@1.2.1
|
2020-02-06 01:33:55 +01:00
|
|
|
#For use SSD1306 OLED display uncomment following
|
2019-12-31 23:57:15 +01:00
|
|
|
#U8g2@~2.27.2
|
2020-01-04 05:46:00 +01:00
|
|
|
#For Dallas sensor uncomment following 2 lines
|
|
|
|
#DallasTemperature@~3.8.0
|
|
|
|
#OneWire@~2.3.5
|
2018-11-14 20:21:36 +01:00
|
|
|
[common:esp8266]
|
2019-03-18 18:13:04 +01:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# PLATFORM:
|
|
|
|
# !! DO NOT confuse platformio's ESP8266 development platform with Arduino core for ESP8266
|
|
|
|
# We use Arduino Core 2.5.0 (platformIO 2.0.4) as default
|
|
|
|
#
|
|
|
|
# arduino core 2.3.0 = platformIO 1.5.0
|
|
|
|
# arduino core 2.4.0 = platformIO 1.6.0
|
|
|
|
# arduino core 2.4.1 = platformIO 1.7.3
|
|
|
|
# arduino core 2.4.2 = platformIO 1.8.0
|
|
|
|
# arduino core 2.5.0 = platformIO 2.0.4
|
|
|
|
# arduino core stage = platformIO feature#stage
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
arduino_core_2_3_0 = espressif8266@1.5.0
|
|
|
|
arduino_core_2_4_0 = espressif8266@1.6.0
|
|
|
|
arduino_core_2_4_1 = espressif8266@1.7.3
|
|
|
|
arduino_core_2_4_2 = espressif8266@1.8.0
|
|
|
|
arduino_core_2_5_0 = espressif8266@2.0.4
|
2019-09-12 12:40:06 +02:00
|
|
|
arduino_core_2_5_2 = espressif8266@2.2.3
|
2019-12-18 15:35:32 +01:00
|
|
|
arduino_core_2_6_1 = espressif8266@2.3.0
|
|
|
|
arduino_core_2_6_2 = espressif8266@2.3.1
|
2020-02-22 16:19:05 +01:00
|
|
|
arduino_core_2_6_3 = espressif8266@2.3.3
|
2019-03-18 18:13:04 +01:00
|
|
|
arduino_core_stage = https://github.com/platformio/platform-espressif8266.git#feature/stage
|
2020-02-22 16:19:05 +01:00
|
|
|
platform = ${common:esp8266.arduino_core_2_6_3}
|
2018-11-14 00:05:06 +01:00
|
|
|
build_flags =
|
2020-02-15 16:42:05 +01:00
|
|
|
-D ESP8266
|
2020-02-24 12:44:41 +01:00
|
|
|
-D PIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH
|
2020-02-25 08:42:28 +01:00
|
|
|
board_build.ldscript = eagle.flash.4m1m.ld ;;;; Required for core > v2.5.0 or staging version 4MB Flash 3MB SPIFFs
|
2020-02-22 16:19:05 +01:00
|
|
|
lib_ignore = AsyncTCP
|
2019-03-18 18:13:04 +01:00
|
|
|
|
|
|
|
[common:esp8266_1M]
|
2020-02-24 12:44:41 +01:00
|
|
|
platform = ${common:esp8266.arduino_core_2_6_3}
|
2019-03-18 18:13:04 +01:00
|
|
|
build_flags =
|
2020-02-24 12:44:41 +01:00
|
|
|
-D PIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH
|
2019-03-24 18:28:36 +01:00
|
|
|
; -D WLED_DISABLE_OTA
|
2019-03-18 18:13:04 +01:00
|
|
|
; -D WLED_DISABLE_ALEXA
|
2019-10-04 01:38:42 +02:00
|
|
|
-D WLED_DISABLE_BLYNK
|
|
|
|
-D WLED_DISABLE_CRONIXIE
|
2019-03-24 18:28:36 +01:00
|
|
|
; -D WLED_DISABLE_HUESYNC
|
2020-02-24 12:44:41 +01:00
|
|
|
-D WLED_DISABLE_INFRARED
|
2020-02-25 08:42:28 +01:00
|
|
|
board_build.ldscript = eagle.flash.1m.ld ;;;; Compile with no SPIFFS to leave space for OTA
|
2020-02-22 16:19:05 +01:00
|
|
|
lib_ignore = ${common:esp8266.lib_ignore}
|
2018-11-14 20:21:36 +01:00
|
|
|
|
|
|
|
[common:esp8266_512k]
|
2020-02-24 12:44:41 +01:00
|
|
|
platform = ${common:esp8266.arduino_core_2_6_3}
|
2018-11-14 20:21:36 +01:00
|
|
|
build_flags =
|
2020-02-24 12:44:41 +01:00
|
|
|
-D PIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH
|
2018-11-14 20:21:36 +01:00
|
|
|
-D WLED_DISABLE_OTA
|
2020-02-24 17:25:40 +01:00
|
|
|
-D WLED_DISABLE_ALEXA
|
2019-10-04 01:38:42 +02:00
|
|
|
-D WLED_DISABLE_BLYNK
|
|
|
|
-D WLED_DISABLE_CRONIXIE
|
2019-12-18 15:35:32 +01:00
|
|
|
-D WLED_DISABLE_HUESYNC
|
2020-02-24 17:25:40 +01:00
|
|
|
-D WLED_DISABLE_INFRARED
|
2020-02-25 08:42:28 +01:00
|
|
|
board_build.ldscript = eagle.flash.512k.ld ;;;; Compile with no SPIFFS
|
2020-02-22 16:19:05 +01:00
|
|
|
lib_ignore = ${common:esp8266.lib_ignore}
|
2018-11-14 00:05:06 +01:00
|
|
|
|
2018-11-14 20:21:36 +01:00
|
|
|
[common:esp32]
|
2020-02-22 16:19:05 +01:00
|
|
|
platform = espressif32@1.11.2
|
2018-11-14 00:05:06 +01:00
|
|
|
build_flags =
|
2018-11-14 20:21:36 +01:00
|
|
|
-D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
|
|
|
|
-D ARDUINO_ARCH_ESP32
|
2020-02-22 16:19:05 +01:00
|
|
|
lib_ignore =
|
|
|
|
ESPAsyncTCP
|
|
|
|
ESPAsyncUDP
|
2018-11-11 19:34:19 +01:00
|
|
|
|
|
|
|
# see: http://docs.platformio.org/en/latest/platforms/espressif8266.html
|
|
|
|
[env:nodemcuv2]
|
|
|
|
board = nodemcuv2
|
2018-11-14 20:21:36 +01:00
|
|
|
platform = ${common:esp8266.platform}
|
2018-11-14 00:05:06 +01:00
|
|
|
monitor_speed = ${common.monitor_speed}
|
|
|
|
upload_speed = ${common.upload_speed}
|
|
|
|
framework = ${common.framework}
|
2018-11-11 19:34:19 +01:00
|
|
|
build_flags =
|
2018-11-14 00:05:06 +01:00
|
|
|
${common.build_flags}
|
2018-11-14 20:21:36 +01:00
|
|
|
${common:esp8266.build_flags}
|
2020-02-25 08:42:28 +01:00
|
|
|
board_build.ldscript = ${common:esp8266.board_build.ldscript}
|
2018-11-11 19:34:19 +01:00
|
|
|
lib_deps =
|
2018-11-14 00:05:06 +01:00
|
|
|
${common.lib_deps_external}
|
2020-02-17 10:18:36 +01:00
|
|
|
lib_compat_mode = strict
|
2020-02-22 16:19:05 +01:00
|
|
|
lib_ignore = ${common:esp8266.lib_ignore}
|
2018-11-11 19:34:19 +01:00
|
|
|
|
|
|
|
[env:d1_mini]
|
|
|
|
board = d1_mini
|
2018-11-14 20:21:36 +01:00
|
|
|
platform = ${common:esp8266.platform}
|
2018-11-14 00:05:06 +01:00
|
|
|
monitor_speed = ${common.monitor_speed}
|
|
|
|
upload_speed = ${common.upload_speed}
|
|
|
|
framework = ${common.framework}
|
2018-11-11 19:34:19 +01:00
|
|
|
build_flags =
|
2018-11-14 00:05:06 +01:00
|
|
|
${common.build_flags}
|
2018-11-14 20:21:36 +01:00
|
|
|
${common:esp8266.build_flags}
|
2020-02-25 08:42:28 +01:00
|
|
|
board_build.ldscript = ${common:esp8266.board_build.ldscript}
|
2018-11-11 19:34:19 +01:00
|
|
|
lib_deps =
|
2018-11-14 00:05:06 +01:00
|
|
|
${common.lib_deps_external}
|
2020-02-17 10:18:36 +01:00
|
|
|
lib_compat_mode = strict
|
2020-02-22 16:19:05 +01:00
|
|
|
lib_ignore = ${common:esp8266.lib_ignore}
|
2018-11-11 19:34:19 +01:00
|
|
|
|
|
|
|
[env:esp01_1m]
|
|
|
|
board = esp01_1m
|
2019-03-18 18:13:04 +01:00
|
|
|
platform = ${common:esp8266_1M.platform}
|
2018-11-14 00:05:06 +01:00
|
|
|
monitor_speed = ${common.monitor_speed}
|
|
|
|
upload_speed = ${common.upload_speed}
|
|
|
|
framework = ${common.framework}
|
2018-11-11 19:34:19 +01:00
|
|
|
build_flags =
|
2018-11-14 00:05:06 +01:00
|
|
|
${common.build_flags}
|
2019-03-18 18:13:04 +01:00
|
|
|
${common:esp8266_1M.build_flags}
|
2018-12-06 16:31:52 +01:00
|
|
|
# disable IR because there is no pin for it
|
|
|
|
-D WLED_DISABLE_INFRARED
|
2020-02-25 08:42:28 +01:00
|
|
|
board_build.ldscript = ${common:esp8266_1M.board_build.ldscript}
|
2018-11-11 19:34:19 +01:00
|
|
|
lib_deps =
|
2018-11-14 00:05:06 +01:00
|
|
|
${common.lib_deps_external}
|
2020-02-17 10:18:36 +01:00
|
|
|
lib_compat_mode = strict
|
2020-02-22 16:19:05 +01:00
|
|
|
lib_ignore = ${common:esp8266.lib_ignore}
|
2018-11-08 23:57:50 +01:00
|
|
|
|
|
|
|
[env:esp01]
|
|
|
|
board = esp01
|
2018-11-14 20:21:36 +01:00
|
|
|
platform = ${common:esp8266_512k.platform}
|
2018-11-14 00:05:06 +01:00
|
|
|
monitor_speed = ${common.monitor_speed}
|
|
|
|
upload_speed = ${common.upload_speed}
|
|
|
|
framework = ${common.framework}
|
2018-11-11 19:34:19 +01:00
|
|
|
build_flags =
|
2018-11-14 00:05:06 +01:00
|
|
|
${common.build_flags}
|
2018-11-14 20:21:36 +01:00
|
|
|
${common:esp8266_512k.build_flags}
|
2020-02-25 08:42:28 +01:00
|
|
|
board_build.ldscript = ${common:esp8266_512k.board_build.ldscript}
|
2018-11-11 19:34:19 +01:00
|
|
|
lib_deps =
|
2018-11-14 00:05:06 +01:00
|
|
|
${common.lib_deps_external}
|
2020-02-17 10:18:36 +01:00
|
|
|
lib_compat_mode = strict
|
2020-02-22 16:19:05 +01:00
|
|
|
lib_ignore = ${common:esp8266.lib_ignore}
|
2018-11-11 19:34:19 +01:00
|
|
|
|
2020-01-04 05:46:00 +01:00
|
|
|
[env:esp07]
|
|
|
|
board = esp07
|
|
|
|
platform = ${common:esp8266.platform}
|
|
|
|
monitor_speed = ${common.monitor_speed}
|
|
|
|
upload_speed = ${common.upload_speed}
|
|
|
|
framework = ${common.framework}
|
|
|
|
build_flags =
|
|
|
|
${common.build_flags}
|
|
|
|
${common:esp8266.build_flags}
|
2020-02-25 08:42:28 +01:00
|
|
|
board_build.ldscript = ${common:esp8266.board_build.ldscript}
|
2020-01-04 05:46:00 +01:00
|
|
|
lib_deps =
|
|
|
|
${common.lib_deps_external}
|
2020-02-17 10:18:36 +01:00
|
|
|
lib_compat_mode = strict
|
2020-02-22 16:19:05 +01:00
|
|
|
lib_ignore = ${common:esp8266.lib_ignore}
|
2020-01-04 05:46:00 +01:00
|
|
|
|
2018-11-11 19:34:19 +01:00
|
|
|
# see: http://docs.platformio.org/en/latest/platforms/espressif32.html
|
|
|
|
[env:esp32dev]
|
|
|
|
board = esp32dev
|
2018-11-14 20:21:36 +01:00
|
|
|
platform = ${common:esp32.platform}
|
2018-11-14 00:05:06 +01:00
|
|
|
monitor_speed = ${common.monitor_speed}
|
2019-03-18 18:13:04 +01:00
|
|
|
upload_speed = ${common.upload_speed_fast}
|
2018-11-14 00:05:06 +01:00
|
|
|
framework = ${common.framework}
|
2018-11-11 19:34:19 +01:00
|
|
|
build_flags =
|
2018-11-14 00:05:06 +01:00
|
|
|
${common.build_flags}
|
|
|
|
${common:esp32.build_flags}
|
2018-11-08 23:57:50 +01:00
|
|
|
lib_deps =
|
2018-11-14 00:05:06 +01:00
|
|
|
${common.lib_deps_external}
|
2020-02-22 16:19:05 +01:00
|
|
|
lib_ignore = ${common:esp32.lib_ignore}
|
2020-02-17 10:18:36 +01:00
|
|
|
lib_compat_mode = strict
|
2019-12-19 20:59:36 +01:00
|
|
|
|
2019-12-18 13:33:27 +01:00
|
|
|
[env:esp8285_4CH_MagicHome]
|
|
|
|
board = esp8285
|
|
|
|
platform = ${common:esp8266_1M.platform}
|
|
|
|
monitor_speed = ${common.monitor_speed}
|
|
|
|
upload_speed = ${common.upload_speed}
|
|
|
|
framework = ${common.framework}
|
|
|
|
build_flags =
|
|
|
|
${common.build_flags}
|
|
|
|
${common:esp8266_1M.build_flags}
|
|
|
|
-D WLED_DISABLE_HUESYNC
|
2020-01-07 23:58:15 +01:00
|
|
|
-D WLED_USE_ANALOG_LEDS
|
2020-02-25 08:42:28 +01:00
|
|
|
board_build.ldscript = ${common:esp8266_1M.board_build.ldscript}
|
2019-12-18 13:33:27 +01:00
|
|
|
lib_deps =
|
|
|
|
${common.lib_deps_external}
|
2020-02-17 10:18:36 +01:00
|
|
|
lib_compat_mode = strict
|
2020-02-22 16:19:05 +01:00
|
|
|
lib_ignore = ${common:esp8266.lib_ignore}
|
2019-12-18 13:33:27 +01:00
|
|
|
|
|
|
|
[env:esp8285_4CH_H801]
|
|
|
|
board = esp8285
|
2019-12-19 23:43:18 +01:00
|
|
|
platform = ${common:esp8266_1M.platform}
|
2019-12-18 13:33:27 +01:00
|
|
|
monitor_speed = ${common.monitor_speed}
|
|
|
|
upload_speed = ${common.upload_speed}
|
|
|
|
framework = ${common.framework}
|
|
|
|
build_flags =
|
|
|
|
${common.build_flags}
|
|
|
|
${common:esp8266_1M.build_flags}
|
|
|
|
-D WLED_DISABLE_HUESYNC
|
2020-01-07 23:58:15 +01:00
|
|
|
-D WLED_USE_ANALOG_LEDS
|
2019-12-18 13:33:27 +01:00
|
|
|
-D WLED_USE_H801
|
2020-02-25 08:42:28 +01:00
|
|
|
board_build.ldscript = ${common:esp8266_1M.board_build.ldscript}
|
2019-12-18 13:33:27 +01:00
|
|
|
lib_deps =
|
|
|
|
${common.lib_deps_external}
|
2020-02-17 10:18:36 +01:00
|
|
|
lib_compat_mode = strict
|
2020-02-22 16:19:05 +01:00
|
|
|
lib_ignore = ${common:esp8266.lib_ignore}
|
2019-12-18 13:33:27 +01:00
|
|
|
|
|
|
|
[env:esp8285_5CH_H801]
|
|
|
|
board = esp8285
|
|
|
|
platform = ${common:esp8266_1M.platform}
|
|
|
|
monitor_speed = ${common.monitor_speed}
|
|
|
|
upload_speed = ${common.upload_speed}
|
|
|
|
framework = ${common.framework}
|
|
|
|
build_flags =
|
|
|
|
${common.build_flags}
|
|
|
|
${common:esp8266_1M.build_flags}
|
|
|
|
-D WLED_DISABLE_HUESYNC
|
2020-01-07 23:58:15 +01:00
|
|
|
-D WLED_USE_ANALOG_LEDS
|
2019-12-18 13:33:27 +01:00
|
|
|
-D WLED_USE_H801
|
|
|
|
-D WLED_ENABLE_5CH_LEDS
|
2020-02-25 08:42:28 +01:00
|
|
|
board_build.ldscript = ${common:esp8266_1M.board_build.ldscript}
|
2019-12-18 13:33:27 +01:00
|
|
|
lib_deps =
|
2019-12-19 20:59:36 +01:00
|
|
|
${common.lib_deps_external}
|
2020-02-17 10:18:36 +01:00
|
|
|
lib_compat_mode = strict
|
2020-02-22 16:19:05 +01:00
|
|
|
lib_ignore = ${common:esp8266.lib_ignore}
|