2018-11-08 22:57:50 +00:00
; PlatformIO Project Configuration File
2018-11-13 23:05:06 +00:00
; Please visit documentation: https://docs.platformio.org/page/projectconf.html
2018-11-08 22:57:50 +00:00
[platformio]
2020-02-29 15:30:15 +00:00
# ------------------------------------------------------------------------------
# ENVIRONMENTS
#
# Please uncomment one of the lines below to select your board(s)
2022-12-03 19:55:17 +00:00
# (use `platformio_override.ini` when building for your own board; see `platformio_override.ini.sample` for an example)
2020-02-29 15:30:15 +00:00
# ------------------------------------------------------------------------------
2024-01-18 17:28:01 +00:00
# CI/release binaries
2024-01-19 13:18:54 +00:00
default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth, esp32dev_audioreactive, lolin_s2_mini, esp32c3dev, esp32s3dev_8MB, esp32s3dev_8MB_PSRAM_opi, esp32_wrover
2020-02-24 11:44:41 +00:00
2020-11-17 23:54:41 +00:00
src_dir = ./wled00
data_dir = ./wled00/data
build_cache_dir = ~/.buildcache
2020-12-01 12:33:22 +00:00
extra_configs =
2020-11-17 23:54:41 +00:00
platformio_override.ini
2018-11-13 23:05:06 +00:00
[common]
2019-03-18 17:13:04 +00:00
# ------------------------------------------------------------------------------
# PLATFORM:
# !! DO NOT confuse platformio's ESP8266 development platform with Arduino core for ESP8266
#
2020-02-26 10:17:56 +00:00
# arduino core 2.6.3 = platformIO 2.3.2
2020-05-08 22:29:42 +00:00
# arduino core 2.7.0 = platformIO 2.5.0
2019-03-18 17:13:04 +00:00
# ------------------------------------------------------------------------------
2020-02-28 17:53:38 +00:00
arduino_core_2_6_3 = espressif8266@2.3.3
2020-08-10 04:44:01 +00:00
arduino_core_2_7_4 = espressif8266@2.6.2
2021-06-09 10:57:16 +00:00
arduino_core_3_0_0 = espressif8266@3.0.0
2024-01-30 18:26:37 +00:00
arduino_core_3_0_2 = espressif8266@3.2.0
arduino_core_3_1_0 = espressif8266@4.1.0
2024-01-18 17:28:01 +00:00
arduino_core_3_1_2 = espressif8266@4.2.1
2019-03-18 17:13:04 +00:00
2020-02-26 10:17:56 +00:00
# Development platforms
arduino_core_develop = https://github.com/platformio/platform-espressif8266#develop
arduino_core_git = https://github.com/platformio/platform-espressif8266#feature/stage
2018-11-14 19:21:36 +00:00
2020-05-08 22:29:42 +00:00
# Platform to use for ESP8266
2023-06-17 23:07:50 +00:00
platform_wled_default = ${common.arduino_core_3_1_2}
2020-11-17 20:49:39 +00:00
# We use 2.7.4.7 for all, includes PWM flicker fix and Wstring optimization
2023-03-21 16:28:04 +00:00
#platform_packages = tasmota/framework-arduinoespressif8266 @ 3.20704.7
platform_packages = platformio/framework-arduinoespressif8266
2023-03-28 21:19:00 +00:00
platformio/toolchain-xtensa @ ~2.100300.220621 #2.40802.200502
2023-03-21 16:28:04 +00:00
platformio/tool-esptool #@ ~1.413.0
platformio/tool-esptoolpy #@ ~1.30000.0
2018-11-13 23:05:06 +00:00
2023-03-31 13:44:21 +00:00
## previous platform for 8266, in case of problems with the new one
## you'll need makuna/NeoPixelBus@ 2.6.9 for arduino_core_3_2_0, which does not support Ucs890x
;; platform_wled_default = ${common.arduino_core_3_2_0}
;; platform_packages = tasmota/framework-arduinoespressif8266 @ 3.20704.7
;; platformio/toolchain-xtensa @ ~2.40802.200502
;; platformio/tool-esptool @ ~1.413.0
;; platformio/tool-esptoolpy @ ~1.30000.0
2020-02-26 10:17:56 +00:00
# ------------------------------------------------------------------------------
# FLAGS: DEBUG
2023-09-10 00:00:09 +00:00
# esp8266 : see https://docs.platformio.org/en/latest/platforms/espressif8266.html#debug-level
# esp32 : see https://docs.platformio.org/en/latest/platforms/espressif32.html#debug-level
2020-02-26 10:17:56 +00:00
# ------------------------------------------------------------------------------
2023-09-10 00:00:09 +00:00
debug_flags = -D DEBUG=1 -D WLED_DEBUG
-DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM ;; for esp8266
# if needed (for memleaks etc) also add; -DDEBUG_ESP_OOM -include "umm_malloc/umm_malloc_cfg.h"
# -DDEBUG_ESP_CORE is not working right now
2018-11-11 18:34:19 +00:00
2020-02-26 10:17:56 +00:00
# ------------------------------------------------------------------------------
2020-11-17 23:54:41 +00:00
# FLAGS: ldscript (available ldscripts at https://github.com/esp8266/Arduino/tree/master/tools/sdk/ld)
2020-02-26 10:17:56 +00:00
# ldscript_2m1m (2048 KB) = 1019 KB sketch, 4 KB eeprom, 1004 KB spiffs, 16 KB reserved
# ldscript_4m1m (4096 KB) = 1019 KB sketch, 4 KB eeprom, 1002 KB spiffs, 16 KB reserved, 2048 KB empty/ota?
#
# Available lwIP variants (macros):
# -DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH = v1.4 Higher Bandwidth (default)
# -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY = v2 Lower Memory
# -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH = v2 Higher Bandwidth
2020-11-17 23:54:41 +00:00
# -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH
2020-02-26 10:17:56 +00:00
#
# BearSSL performance:
# When building with -DSECURE_CLIENT=SECURE_CLIENT_BEARSSL, please add `board_build.f_cpu = 160000000` to the environment configuration
#
# BearSSL ciphers:
# When building on core >= 2.5, you can add the build flag -DBEARSSL_SSL_BASIC in order to build BearSSL with a limited set of ciphers:
# TLS_RSA_WITH_AES_128_CBC_SHA256 / AES128-SHA256
# TLS_RSA_WITH_AES_256_CBC_SHA256 / AES256-SHA256
# TLS_RSA_WITH_AES_128_CBC_SHA / AES128-SHA
# TLS_RSA_WITH_AES_256_CBC_SHA / AES256-SHA
# This reduces the OTA size with ~45KB, so it's especially useful on low memory boards (512k/1m).
# ------------------------------------------------------------------------------
2020-11-17 20:49:39 +00:00
build_flags =
2023-04-27 23:28:57 +00:00
-Wno-attributes
2020-12-01 12:33:22 +00:00
-DMQTT_MAX_PACKET_SIZE = 1024
-DSECURE_CLIENT = SECURE_CLIENT_BEARSSL
2020-11-17 20:49:39 +00:00
-DBEARSSL_SSL_BASIC
-D CORE_DEBUG_LEVEL = 0
-D NDEBUG
2023-03-31 13:44:21 +00:00
-Wno-attributes ;; silence warnings about unknown attribute 'maybe_unused' in NeoPixelBus
2020-12-01 12:33:22 +00:00
#build_flags for the IRremoteESP8266 library (enabled decoders have to appear here)
-D _IR_ENABLE_DEFAULT_ = false
-D DECODE_HASH = true
2020-03-03 16:53:47 +00:00
-D DECODE_NEC = true
2020-12-01 12:33:22 +00:00
-D DECODE_SONY = true
2020-03-03 16:53:47 +00:00
-D DECODE_SAMSUNG = true
-D DECODE_LG = true
2020-11-17 23:54:41 +00:00
-DWLED_USE_MY_CONFIG
2020-11-17 20:49:39 +00:00
build_unflags =
2020-11-17 23:54:41 +00:00
build_flags_esp8266 = ${common.build_flags} ${esp8266.build_flags}
build_flags_esp32 = ${common.build_flags} ${esp32.build_flags}
2023-03-29 22:03:04 +00:00
build_flags_esp32_V4 = ${common.build_flags} ${esp32_idf_V4.build_flags}
2020-11-17 23:54:41 +00:00
2020-11-08 22:44:10 +00:00
ldscript_1m128k = eagle.flash.1m128.ld
ldscript_2m512k = eagle.flash.2m512.ld
2020-02-26 10:17:56 +00:00
ldscript_2m1m = eagle.flash.2m1m.ld
ldscript_4m1m = eagle.flash.4m1m.ld
2018-11-11 18:34:19 +00:00
2020-11-17 20:49:39 +00:00
[scripts_defaults]
2021-04-21 22:41:36 +00:00
extra_scripts =
pre:pio-scripts/set_version.py
post:pio-scripts/output_bins.py
post:pio-scripts/strip-floats.py
pre:pio-scripts/user_config_copy.py
2023-12-19 21:23:01 +00:00
pre:pio-scripts/build_ui.py
2020-11-17 20:49:39 +00:00
2020-02-26 10:17:56 +00:00
# ------------------------------------------------------------------------------
# COMMON SETTINGS:
# ------------------------------------------------------------------------------
[env]
framework = arduino
board_build.flash_mode = dout
monitor_speed = 115200
2024-01-30 18:44:10 +00:00
# slow upload speed but most compatible (use platformio_override.ini to use faster speed)
2020-02-26 10:17:56 +00:00
upload_speed = 115200
2020-11-17 20:49:39 +00:00
2020-02-26 10:17:56 +00:00
# ------------------------------------------------------------------------------
# LIBRARIES: required dependencies
# Please note that we don't always use the latest version of a library.
#
2023-03-31 13:44:21 +00:00
# The following libraries have been included (and some of them changed) in the source:
2023-02-21 16:07:32 +00:00
# ArduinoJson@5.13.5, E131@1.0.0(changed), Time@1.5, Timezone@1.2.1
2020-02-26 10:17:56 +00:00
# ------------------------------------------------------------------------------
2020-02-17 09:18:36 +00:00
lib_compat_mode = strict
2020-02-26 10:17:56 +00:00
lib_deps =
2023-07-20 20:36:47 +00:00
fastled/FastLED @ 3.6.0
2022-03-15 23:16:49 +00:00
IRremoteESP8266 @ 2.8.2
2023-04-28 14:52:48 +00:00
makuna/NeoPixelBus @ 2.7.5
2022-10-07 02:22:59 +00:00
https://github.com/Aircoookie/ESPAsyncWebServer.git @ ~2.0.7
2024-01-18 17:28:01 +00:00
# for I2C interface
;Wire
2024-02-17 10:33:42 +00:00
# ESP-NOW library
;gmag11/QuickESPNow @ ~0.7.0
2023-09-10 16:52:14 +00:00
https://github.com/blazoncek/QuickESPNow.git#optional-debug
2020-12-01 12:33:22 +00:00
#For use of the TTGO T-Display ESP32 Module with integrated TFT display uncomment the following line
2020-05-30 07:22:31 +00:00
#TFT_eSPI
2023-05-28 20:50:19 +00:00
#For compatible OLED display uncomment following
2024-01-18 17:28:01 +00:00
#olikraus/U8g2 #@ ~2.33.15
2023-05-28 20:50:19 +00:00
#For Dallas sensor uncomment following
2024-01-18 17:28:01 +00:00
#paulstoffregen/OneWire @ ~2.3.8
2020-04-15 21:52:10 +00:00
#For BME280 sensor uncomment following
2023-05-28 20:50:19 +00:00
#BME280 @ ~3.0.0
2024-01-18 17:28:01 +00:00
;adafruit/Adafruit BMP280 Library @ 2.1.0
;adafruit/Adafruit CCS811 Library @ 1.0.4
;adafruit/Adafruit Si7021 Library @ 1.4.0
2022-10-21 01:25:36 +00:00
#For ADS1115 sensor uncomment following
2024-01-18 17:28:01 +00:00
;adafruit/Adafruit BusIO @ 1.13.2
;adafruit/Adafruit ADS1X15 @ 2.4.0
2024-01-07 20:50:15 +00:00
#For MPU6050 IMU uncomment follwoing
2024-01-18 17:28:01 +00:00
;electroniccats/MPU6050 @1.0.1
# For -D USERMOD_ANIMARTRIX
# CC BY-NC 3.0 licensed effects by Stefan Petrick, include this usermod only if you accept the terms!
;https://github.com/netmindz/animartrix.git#18bf17389e57c69f11bc8d04ebe1d215422c7fb7
# SHT85
;robtillaart/SHT85@~0.3.3
# Audioreactive usermod
2024-01-19 13:18:54 +00:00
;https://github.com/kosme/arduinoFFT#develop @ ^1.9.2
2020-12-29 18:35:59 +00:00
2022-02-01 11:02:04 +00:00
extra_scripts = ${scripts_defaults.extra_scripts}
2020-11-17 20:49:39 +00:00
2021-07-03 11:52:23 +00:00
[esp8266]
build_flags =
-DESP8266
-DFP_IN_IROM
;-Wno-deprecated-declarations
2023-07-20 20:36:47 +00:00
;-Wno-register ;; leaves some warnings when compiling C files: command-line option '-Wno-register' is valid for C++/ObjC++ but not for C
2023-03-21 23:06:25 +00:00
;-Dregister= # remove warnings in C++17 due to use of deprecated register keyword by the FastLED library ;; warning: this can be dangerous
2023-03-31 13:44:21 +00:00
-Wno-misleading-indentation
; NONOSDK22x_190703 = 2.2.2-dev(38a443e)
2021-07-03 11:52:23 +00:00
-DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703
2023-03-31 13:44:21 +00:00
; lwIP 2 - Higher Bandwidth no Features
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH
; lwIP 1.4 - Higher Bandwidth (Aircoookie has)
-DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH
; VTABLES in Flash
2021-07-03 11:52:23 +00:00
-DVTABLES_IN_FLASH
2023-03-31 13:44:21 +00:00
; restrict to minimal mime-types
2021-07-03 11:52:23 +00:00
-DMIMETYPE_MINIMAL
2023-09-10 00:00:09 +00:00
; other special-purpose framework flags (see https://docs.platformio.org/en/latest/platforms/espressif8266.html)
2023-10-15 11:06:40 +00:00
; decrease code cache size and increase IRAM to fit all pixel functions
-D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48 ;; in case of linker errors like "section `.text1' will not fit in region `iram1_0_seg'"
2023-09-10 00:00:09 +00:00
; -D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48_SECHEAP_SHARED ;; (experimental) adds some extra heap, but may cause slowdown
2021-07-03 11:52:23 +00:00
2023-03-31 13:44:21 +00:00
lib_deps =
2022-02-01 11:02:04 +00:00
#https://github.com/lorol/LITTLEFS.git
2022-03-16 00:45:07 +00:00
ESPAsyncTCP @ 1.2.2
2021-07-03 11:52:23 +00:00
ESPAsyncUDP
2023-04-28 14:52:48 +00:00
${env.lib_deps}
2021-07-03 11:52:23 +00:00
[esp32]
2022-03-10 10:20:39 +00:00
#platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.2.3/platform-espressif32-2.0.2.3.zip
2022-02-01 11:02:04 +00:00
platform = espressif32@3.5.0
2022-03-10 10:20:39 +00:00
platform_packages = framework-arduinoespressif32 @ https://github.com/Aircoookie/arduino-esp32.git#1.0.6.4
2021-07-03 11:52:23 +00:00
build_flags = -g
-DARDUINO_ARCH_ESP32
2022-02-01 11:02:04 +00:00
#-DCONFIG_LITTLEFS_FOR_IDF_3_2
2021-09-09 15:50:59 +00:00
-D CONFIG_ASYNC_TCP_USE_WDT = 0
2023-03-21 22:15:08 +00:00
#use LITTLEFS library by lorol in ESP32 core 1.x.x instead of built-in in 2.x.x
2022-02-01 11:02:04 +00:00
-D LOROL_LITTLEFS
2023-03-31 13:44:21 +00:00
; -DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when building with arduino-esp32 >=2.0.3
2021-11-17 00:18:19 +00:00
default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv
2021-07-04 13:29:46 +00:00
lib_deps =
2022-01-14 16:19:33 +00:00
https://github.com/lorol/LITTLEFS.git
2021-09-10 23:17:42 +00:00
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
2023-04-28 14:52:48 +00:00
${env.lib_deps}
2023-09-10 14:30:04 +00:00
# additional build flags for audioreactive
AR_build_flags = -D USERMOD_AUDIOREACTIVE -D UM_AUDIOREACTIVE_USE_NEW_FFT
AR_lib_deps = https://github.com/kosme/arduinoFFT#develop @ ^1.9.2
2023-03-21 23:46:27 +00:00
[esp32_idf_V4]
2023-03-31 13:44:21 +00:00
;; experimental build environment for ESP32 using ESP-IDF 4.4.x / arduino-esp32 v2.0.5
2023-03-21 23:46:27 +00:00
;; very similar to the normal ESP32 flags, but omitting Lorol LittleFS, as littlefs is included in the new framework already.
;;
;; please note that you can NOT update existing ESP32 installs with a "V4" build. Also updating by OTA will not work properly.
2023-03-31 13:44:21 +00:00
;; You need to completely erase your device (esptool erase_flash) first, then install the "V4" build from VSCode+platformio.
2023-07-20 19:39:25 +00:00
platform = espressif32@5.3.0
2023-03-31 13:44:21 +00:00
platform_packages =
2023-03-21 23:46:27 +00:00
build_flags = -g
bugfix for art-net transmit
art-net transmit was not sending out LEDs, but only transmitted headers repeatedly (thanks @troyhacks for noticing).
Actually such problems can be found by newer compilers, so i've added the warning option to [esp32_idf_V4].
wled00/udp.cpp: In function 'uint8_t realtimeBroadcast(uint8_t, IPAddress, uint16_t, uint8_t*, uint8_t, bool)':
wled00/udp.cpp:824:40: warning: declaration of 'byte buffer [12]' shadows a parameter [-Wshadow=compatible-local]
byte buffer[ART_NET_HEADER_SIZE];
^
wled00/udp.cpp:720:85: note: shadowed declaration is here
uint8_t realtimeBroadcast(uint8_t type, IPAddress client, uint16_t length, uint8_t *buffer, uint8_t bri, bool isRGBW) {
2023-04-14 09:39:12 +00:00
-Wshadow = compatible-local ;; emit warning in case a local variable "shadows" another local one
2023-03-21 23:46:27 +00:00
-DARDUINO_ARCH_ESP32 -DESP32
#-DCONFIG_LITTLEFS_FOR_IDF_3_2
-D CONFIG_ASYNC_TCP_USE_WDT = 0
2023-03-31 13:44:21 +00:00
-DARDUINO_USB_CDC_ON_BOOT = 0 ;; this flag is mandatory for "classic ESP32" when building with arduino-esp32 >=2.0.3
2023-03-21 23:46:27 +00:00
default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv
lib_deps =
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
2023-04-28 14:52:48 +00:00
${env.lib_deps}
2023-03-21 23:46:27 +00:00
2021-07-04 13:29:46 +00:00
[esp32s2]
2023-03-21 16:28:04 +00:00
;; generic definitions for all ESP32-S2 boards
2023-07-20 19:39:25 +00:00
platform = espressif32@5.3.0
2023-03-31 13:44:21 +00:00
platform_packages =
2024-01-19 13:18:54 +00:00
default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv
2021-07-04 13:29:46 +00:00
build_flags = -g
-DARDUINO_ARCH_ESP32
-DARDUINO_ARCH_ESP32S2
2023-03-21 22:15:08 +00:00
-DCONFIG_IDF_TARGET_ESP32S2 = 1
2021-09-09 15:50:59 +00:00
-D CONFIG_ASYNC_TCP_USE_WDT = 0
2023-03-29 22:03:04 +00:00
-DARDUINO_USB_MSC_ON_BOOT = 0 -DARDUINO_USB_DFU_ON_BOOT=0
2021-09-09 15:50:59 +00:00
-DCO
2022-12-21 21:07:15 +00:00
-DARDUINO_USB_MODE = 0 ;; this flag is mandatory for ESP32-S2 !
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
2023-03-29 22:03:04 +00:00
;; ARDUINO_USB_CDC_ON_BOOT
2021-07-03 11:52:23 +00:00
lib_deps =
2021-09-10 23:17:42 +00:00
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
2023-04-28 14:52:48 +00:00
${env.lib_deps}
2021-07-03 11:52:23 +00:00
2022-01-24 10:34:02 +00:00
[esp32c3]
2023-03-21 16:28:04 +00:00
;; generic definitions for all ESP32-C3 boards
2023-07-20 19:39:25 +00:00
platform = espressif32@5.3.0
2023-03-31 13:44:21 +00:00
platform_packages =
2022-01-24 10:34:02 +00:00
build_flags = -g
-DARDUINO_ARCH_ESP32
-DARDUINO_ARCH_ESP32C3
2023-03-21 22:15:08 +00:00
-DCONFIG_IDF_TARGET_ESP32C3 = 1
2022-01-24 10:34:02 +00:00
-D CONFIG_ASYNC_TCP_USE_WDT = 0
-DCO
2022-12-21 21:07:15 +00:00
-DARDUINO_USB_MODE = 1 ;; this flag is mandatory for ESP32-C3
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
;; ARDUINO_USB_CDC_ON_BOOT
2022-01-24 10:34:02 +00:00
lib_deps =
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
2023-04-28 14:52:48 +00:00
${env.lib_deps}
2022-01-24 10:34:02 +00:00
2022-09-21 06:47:52 +00:00
[esp32s3]
;; generic definitions for all ESP32-S3 boards
2023-07-20 19:39:25 +00:00
platform = espressif32@5.3.0
2023-03-31 13:44:21 +00:00
platform_packages =
2022-09-21 06:47:52 +00:00
build_flags = -g
-DESP32
-DARDUINO_ARCH_ESP32
-DARDUINO_ARCH_ESP32S3
2023-03-21 22:15:08 +00:00
-DCONFIG_IDF_TARGET_ESP32S3 = 1
2022-09-21 06:47:52 +00:00
-D CONFIG_ASYNC_TCP_USE_WDT = 0
2023-03-29 22:03:04 +00:00
-DARDUINO_USB_MSC_ON_BOOT = 0 -DARDUINO_DFU_ON_BOOT=0
2022-09-21 06:47:52 +00:00
-DCO
2022-12-21 21:07:15 +00:00
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
2023-03-29 22:03:04 +00:00
;; ARDUINO_USB_MODE, ARDUINO_USB_CDC_ON_BOOT
2022-09-21 06:47:52 +00:00
lib_deps =
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
2023-04-28 14:52:48 +00:00
${env.lib_deps}
2022-09-21 06:47:52 +00:00
2020-02-26 10:17:56 +00:00
# ------------------------------------------------------------------------------
# WLED BUILDS
# ------------------------------------------------------------------------------
[env:nodemcuv2]
board = nodemcuv2
2020-05-28 00:20:02 +00:00
platform = ${common.platform_wled_default}
2020-11-17 20:49:39 +00:00
platform_packages = ${common.platform_packages}
2020-02-26 10:17:56 +00:00
board_build.ldscript = ${common.ldscript_4m1m}
2020-11-17 20:49:39 +00:00
build_unflags = ${common.build_unflags}
2023-02-21 16:07:32 +00:00
build_flags = ${common.build_flags_esp8266} -D WLED_RELEASE_NAME=ESP8266 #-DWLED_DISABLE_2D
2021-07-03 11:52:23 +00:00
lib_deps = ${esp8266.lib_deps}
2022-08-31 02:31:56 +00:00
monitor_filters = esp8266_exception_decoder
2018-11-08 22:57:50 +00:00
2021-12-08 00:22:48 +00:00
[env:esp8266_2m]
board = esp_wroom_02
platform = ${common.platform_wled_default}
2022-02-24 00:16:24 +00:00
platform_packages = ${common.platform_packages}
2021-12-08 00:22:48 +00:00
board_build.ldscript = ${common.ldscript_2m512k}
2022-02-24 00:16:24 +00:00
build_unflags = ${common.build_unflags}
2023-02-21 16:07:32 +00:00
build_flags = ${common.build_flags_esp8266} -D WLED_RELEASE_NAME=ESP02
2021-12-08 00:22:48 +00:00
lib_deps = ${esp8266.lib_deps}
2020-02-29 18:52:47 +00:00
[env:esp01_1m_full]
board = esp01_1m
2020-05-28 00:20:02 +00:00
platform = ${common.platform_wled_default}
2020-11-17 20:49:39 +00:00
platform_packages = ${common.platform_packages}
2020-11-08 22:44:10 +00:00
board_build.ldscript = ${common.ldscript_1m128k}
2020-11-17 20:49:39 +00:00
build_unflags = ${common.build_unflags}
2023-02-21 16:07:32 +00:00
build_flags = ${common.build_flags_esp8266} -D WLED_RELEASE_NAME=ESP01 -D WLED_DISABLE_OTA
2023-10-01 17:04:30 +00:00
; -D WLED_USE_UNREAL_MATH ;; may cause wrong sunset/sunrise times, but saves 7064 bytes FLASH and 975 bytes RAM
2021-07-03 11:52:23 +00:00
lib_deps = ${esp8266.lib_deps}
2018-11-11 18:34:19 +00:00
[env:esp32dev]
board = esp32dev
2022-02-01 11:02:04 +00:00
platform = ${esp32.platform}
2022-03-10 10:20:39 +00:00
platform_packages = ${esp32.platform_packages}
2020-11-17 20:49:39 +00:00
build_unflags = ${common.build_unflags}
2023-02-21 16:07:32 +00:00
build_flags = ${common.build_flags_esp32} -D WLED_RELEASE_NAME=ESP32 #-D WLED_DISABLE_BROWNOUT_DET
2021-07-03 11:52:23 +00:00
lib_deps = ${esp32.lib_deps}
2022-02-01 11:02:04 +00:00
monitor_filters = esp32_exception_decoder
2021-11-17 00:19:04 +00:00
board_build.partitions = ${esp32.default_partitions}
2019-12-19 19:59:36 +00:00
2023-09-10 14:30:04 +00:00
[env:esp32dev_audioreactive]
board = esp32dev
platform = ${esp32.platform}
platform_packages = ${esp32.platform_packages}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags_esp32} -D WLED_RELEASE_NAME=ESP32_audioreactive #-D WLED_DISABLE_BROWNOUT_DET
${esp32.AR_build_flags}
lib_deps = ${esp32.lib_deps}
${esp32.AR_lib_deps}
monitor_filters = esp32_exception_decoder
board_build.partitions = ${esp32.default_partitions}
; board_build.f_flash = 80000000L
; board_build.flash_mode = dio
2021-02-20 08:54:54 +00:00
[env:esp32_eth]
2020-11-13 17:25:13 +00:00
board = esp32-poe
2022-02-01 11:02:04 +00:00
platform = ${esp32.platform}
2022-03-10 10:20:39 +00:00
platform_packages = ${esp32.platform_packages}
2020-11-13 17:25:13 +00:00
upload_speed = 921600
2020-11-17 21:46:17 +00:00
build_unflags = ${common.build_unflags}
2023-02-21 16:07:32 +00:00
build_flags = ${common.build_flags_esp32} -D WLED_RELEASE_NAME=ESP32_Ethernet -D RLYPIN=-1 -D WLED_USE_ETHERNET -D BTNPIN=-1
2023-08-01 11:11:06 +00:00
-D WLED_DISABLE_ESPNOW ;; ESP-NOW requires wifi, may crash with ethernet only
2021-07-03 11:52:23 +00:00
lib_deps = ${esp32.lib_deps}
2021-11-17 00:19:04 +00:00
board_build.partitions = ${esp32.default_partitions}
2020-11-13 17:25:13 +00:00
2024-01-19 13:18:54 +00:00
[env:esp32_wrover]
platform = ${esp32.platform}
board = ttgo-t7-v14-mini32
board_build.f_flash = 80000000L
2022-01-14 16:19:33 +00:00
board_build.flash_mode = qio
2024-01-19 13:18:54 +00:00
board_build.partitions = ${esp32.default_partitions}
2021-07-06 23:56:07 +00:00
build_unflags = ${common.build_unflags}
2024-01-19 13:18:54 +00:00
build_flags = ${common.build_flags_esp32} -D WLED_RELEASE_NAME=ESP32_WROVER
-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue
-D WLED_USE_PSRAM
-D LEDPIN = 25
lib_deps = ${esp32.lib_deps}
2021-07-06 23:56:07 +00:00
2023-03-21 22:15:08 +00:00
[env:esp32c3dev]
extends = esp32c3
platform = ${esp32c3.platform}
platform_packages = ${esp32c3.platform_packages}
2022-01-24 10:34:02 +00:00
framework = arduino
2022-10-07 02:22:59 +00:00
board = esp32-c3-devkitm-1
2022-01-24 10:34:02 +00:00
board_build.partitions = tools/WLED_ESP32_4MB_1MB_FS.csv
2023-08-11 21:11:08 +00:00
build_flags = ${common.build_flags} ${esp32c3.build_flags} -D WLED_RELEASE_NAME=ESP32-C3
2022-10-07 02:22:59 +00:00
-D WLED_WATCHDOG_TIMEOUT = 0
2023-07-20 20:09:14 +00:00
-DLOLIN_WIFI_FIX ; seems to work much better with this
2023-06-26 23:51:44 +00:00
-DARDUINO_USB_CDC_ON_BOOT = 1 ;; for virtual CDC USB
;-DARDUINO_USB_CDC_ON_BOOT=0 ;; for serial-to-USB chip
2022-01-24 10:34:02 +00:00
upload_speed = 460800
build_unflags = ${common.build_unflags}
lib_deps = ${esp32c3.lib_deps}
2022-09-21 06:47:52 +00:00
[env:esp32s3dev_8MB]
2022-11-26 14:13:54 +00:00
;; ESP32-S3-DevKitC-1 development board, with 8MB FLASH, no PSRAM (flash_mode: qio)
2022-09-21 06:47:52 +00:00
board = esp32-s3-devkitc-1
2023-03-21 22:15:08 +00:00
platform = ${esp32s3.platform}
platform_packages = ${esp32s3.platform_packages}
2022-12-08 11:47:34 +00:00
upload_speed = 921600 ; or 460800
2022-09-21 06:47:52 +00:00
build_unflags = ${common.build_unflags}
2023-08-11 21:11:08 +00:00
build_flags = ${common.build_flags} ${esp32s3.build_flags} -D WLED_RELEASE_NAME=ESP32-S3_8MB
2022-12-08 11:47:34 +00:00
-D CONFIG_LITTLEFS_FOR_IDF_3_2 -D WLED_WATCHDOG_TIMEOUT = 0
2023-03-29 22:03:04 +00:00
-D ARDUINO_USB_CDC_ON_BOOT = 0 ;; -D ARDUINO_USB_MODE=1 ;; for boards with serial-to-USB chip
2023-07-20 20:09:14 +00:00
;-D ARDUINO_USB_CDC_ON_BOOT=1 ;; -D ARDUINO_USB_MODE=1 ;; for boards with USB-OTG connector only (USBCDC or "TinyUSB")
2022-12-08 12:20:50 +00:00
;-D WLED_DEBUG
2022-09-21 06:47:52 +00:00
lib_deps = ${esp32s3.lib_deps}
board_build.partitions = tools/WLED_ESP32_8MB.csv
board_build.f_flash = 80000000L
board_build.flash_mode = qio
2022-12-08 11:47:34 +00:00
; board_build.flash_mode = dio ;; try this if you have problems at startup
2022-09-21 06:47:52 +00:00
monitor_filters = esp32_exception_decoder
2023-07-20 20:09:14 +00:00
[env:esp32s3dev_8MB_PSRAM_opi]
;; ESP32-S3 development board, with 8MB FLASH and >= 8MB PSRAM (memory_type: qio_opi)
board = esp32-s3-devkitc-1 ;; generic dev board; the next line adds PSRAM support
board_build.arduino.memory_type = qio_opi ;; use with PSRAM: 8MB or 16MB
2023-03-21 22:15:08 +00:00
platform = ${esp32s3.platform}
platform_packages = ${esp32s3.platform_packages}
2022-11-25 22:49:49 +00:00
upload_speed = 921600
build_unflags = ${common.build_unflags}
2024-01-21 13:56:21 +00:00
build_flags = ${common.build_flags} ${esp32s3.build_flags} -D WLED_RELEASE_NAME=ESP32-S3_8MB_PSRAM_opi
2022-12-08 11:47:34 +00:00
-D CONFIG_LITTLEFS_FOR_IDF_3_2 -D WLED_WATCHDOG_TIMEOUT = 0
2023-07-20 20:09:14 +00:00
;-D ARDUINO_USB_CDC_ON_BOOT=0 ;; -D ARDUINO_USB_MODE=1 ;; for boards with serial-to-USB chip
-D ARDUINO_USB_CDC_ON_BOOT = 1 -D ARDUINO_USB_MODE=1 ;; for boards with USB-OTG connector only (USBCDC or "TinyUSB")
2022-11-25 22:49:49 +00:00
; -D WLED_RELEASE_NAME=ESP32-S3_PSRAM
2022-11-26 00:33:46 +00:00
-D WLED_USE_PSRAM -DBOARD_HAS_PSRAM ; tells WLED that PSRAM shall be used
2022-11-25 22:49:49 +00:00
lib_deps = ${esp32s3.lib_deps}
board_build.partitions = tools/WLED_ESP32_8MB.csv
board_build.f_flash = 80000000L
board_build.flash_mode = qio
monitor_filters = esp32_exception_decoder
2022-09-20 20:14:18 +00:00
[env:lolin_s2_mini]
2023-03-21 22:15:08 +00:00
platform = ${esp32s2.platform}
platform_packages = ${esp32s2.platform_packages}
2022-09-20 20:14:18 +00:00
board = lolin_s2_mini
board_build.partitions = tools/WLED_ESP32_4MB_1MB_FS.csv
2024-01-19 13:18:54 +00:00
;board_build.flash_mode = qio
;board_build.f_flash = 80000000L
build_unflags = ${common.build_unflags}
2023-08-11 21:11:08 +00:00
build_flags = ${common.build_flags} ${esp32s2.build_flags} -D WLED_RELEASE_NAME=ESP32-S2
2022-09-20 20:14:18 +00:00
-DBOARD_HAS_PSRAM
2024-01-19 13:18:54 +00:00
-DARDUINO_USB_CDC_ON_BOOT = 1
2023-04-30 15:30:36 +00:00
-DARDUINO_USB_MSC_ON_BOOT = 0
-DARDUINO_USB_DFU_ON_BOOT = 0
-DLOLIN_WIFI_FIX ; seems to work much better with this
2022-09-20 20:14:18 +00:00
-D WLED_USE_PSRAM
-D WLED_WATCHDOG_TIMEOUT = 0
-D CONFIG_ASYNC_TCP_USE_WDT = 0
-D LEDPIN = 16
-D HW_PIN_SCL = 35
-D HW_PIN_SDA = 33
-D HW_PIN_CLOCKSPI = 7
-D HW_PIN_DATASPI = 11
-D HW_PIN_MISOSPI = 9
; -D STATUSLED=15
lib_deps = ${esp32s2.lib_deps}