forked from Aircoookie/WLED
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fixed a few typos, trailing spaces and bad alignments - added the previous 8266 platform packages as a comment, just in case - [env:esp32dev_V4_qio80] is actually "dio" --> renamed to [env:esp32dev_V4_dio80] - all esp32dev targets use the same ${esp32.platform} now (3.2.0 would not compile any more)
- Loading branch information
1 parent
51f38e0
commit af44730
Showing
1 changed file
with
37 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,14 @@ platform_packages = platformio/framework-arduinoespressif8266 | |
platformio/tool-esptool #@ ~1.413.0 | ||
platformio/tool-esptoolpy #@ ~1.30000.0 | ||
|
||
## 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 | ||
|
||
# ------------------------------------------------------------------------------ | ||
# FLAGS: DEBUG | ||
# | ||
|
@@ -106,7 +114,7 @@ build_flags = | |
-DBEARSSL_SSL_BASIC | ||
-D CORE_DEBUG_LEVEL=0 | ||
-D NDEBUG | ||
-Wno-attributes ;; silence warnings about unknown attribute 'maybe_unused' in NeopixelBus | ||
-Wno-attributes ;; silence warnings about unknown attribute 'maybe_unused' in NeoPixelBus | ||
#build_flags for the IRremoteESP8266 library (enabled decoders have to appear here) | ||
-D _IR_ENABLE_DEFAULT_=false | ||
-D DECODE_HASH=true | ||
|
@@ -154,7 +162,7 @@ upload_speed = 115200 | |
# LIBRARIES: required dependencies | ||
# Please note that we don't always use the latest version of a library. | ||
# | ||
# The following libraries have been included (and some of them changd) in the source: | ||
# The following libraries have been included (and some of them changed) in the source: | ||
# [email protected], [email protected](changed), [email protected], [email protected] | ||
# ------------------------------------------------------------------------------ | ||
lib_compat_mode = strict | ||
|
@@ -188,19 +196,19 @@ build_flags = | |
;-Wno-deprecated-declarations | ||
-Wno-register ;; leaves some warnings when compiling C files: command-line option '-Wno-register' is valid for C++/ObjC++ but not for C | ||
;-Dregister= # remove warnings in C++17 due to use of deprecated register keyword by the FastLED library ;; warning: this can be dangerous | ||
-Wno-misleading-indentation | ||
; NONOSDK22x_190703 = 2.2.2-dev(38a443e) | ||
-Wno-misleading-indentation | ||
; 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 | ||
; lwIP 1.4 - Higher Bandwidth (Aircoookie has) | ||
-DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH | ||
; VTABLES in Flash | ||
; 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 | ||
-DVTABLES_IN_FLASH | ||
; restrict to minimal mime-types | ||
; restrict to minimal mime-types | ||
-DMIMETYPE_MINIMAL | ||
|
||
lib_deps = | ||
lib_deps = | ||
${env.lib_deps} | ||
#https://github.com/lorol/LITTLEFS.git | ||
ESPAsyncTCP @ 1.2.2 | ||
|
@@ -219,7 +227,7 @@ build_flags = -g | |
-D CONFIG_ASYNC_TCP_USE_WDT=0 | ||
#use LITTLEFS library by lorol in ESP32 core 1.x.x instead of built-in in 2.x.x | ||
-D LOROL_LITTLEFS | ||
; -DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when builing with arduino-esp32 >=2.0.3 | ||
; -DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when building with arduino-esp32 >=2.0.3 | ||
|
||
default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv | ||
|
||
|
@@ -231,18 +239,18 @@ lib_deps = | |
|
||
|
||
[esp32_idf_V4] | ||
;; experimental buildenv for ESP32 using ESP-IDF 4.4.x / arduino-esp32 v2.0.5 | ||
;; experimental build environment for ESP32 using ESP-IDF 4.4.x / arduino-esp32 v2.0.5 | ||
;; 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. | ||
;; You need to completely erasse your device (esptool erase_flash) first, then install the "V4" build from VSCode+platformio. | ||
;; You need to completely erase your device (esptool erase_flash) first, then install the "V4" build from VSCode+platformio. | ||
platform = [email protected] | ||
platform_packages = | ||
platform_packages = | ||
build_flags = -g | ||
-DARDUINO_ARCH_ESP32 -DESP32 | ||
#-DCONFIG_LITTLEFS_FOR_IDF_3_2 | ||
-D CONFIG_ASYNC_TCP_USE_WDT=0 | ||
-DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when builing with arduino-esp32 >=2.0.3 | ||
-DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when building with arduino-esp32 >=2.0.3 | ||
default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv | ||
lib_deps = | ||
${env.lib_deps} | ||
|
@@ -252,7 +260,7 @@ lib_deps = | |
[esp32s2] | ||
;; generic definitions for all ESP32-S2 boards | ||
platform = [email protected] | ||
platform_packages = | ||
platform_packages = | ||
build_flags = -g | ||
-DARDUINO_ARCH_ESP32 | ||
-DARDUINO_ARCH_ESP32S2 | ||
|
@@ -272,7 +280,7 @@ lib_deps = | |
[esp32c3] | ||
;; generic definitions for all ESP32-C3 boards | ||
platform = [email protected] | ||
platform_packages = | ||
platform_packages = | ||
build_flags = -g | ||
-DARDUINO_ARCH_ESP32 | ||
-DARDUINO_ARCH_ESP32C3 | ||
|
@@ -291,7 +299,7 @@ lib_deps = | |
[esp32s3] | ||
;; generic definitions for all ESP32-S3 boards | ||
platform = [email protected] | ||
platform_packages = | ||
platform_packages = | ||
build_flags = -g | ||
-DESP32 | ||
-DARDUINO_ARCH_ESP32 | ||
|
@@ -402,8 +410,8 @@ board_build.partitions = ${esp32.default_partitions} | |
board_build.f_flash = 80000000L | ||
board_build.flash_mode = qio | ||
|
||
[env:esp32dev_V4_qio80] | ||
;; experimental ESP32 env using ESP-IDF V4.4.x | ||
[env:esp32dev_V4_dio80] | ||
;; experimental ESP32 env using ESP-IDF V4.4.x | ||
;; Warning: this build environment is not stable!! | ||
;; please erase your device before installing. | ||
board = esp32dev | ||
|
@@ -462,7 +470,7 @@ platform = ${esp32s3.platform} | |
platform_packages = ${esp32s3.platform_packages} | ||
upload_speed = 921600 ; or 460800 | ||
build_unflags = ${common.build_unflags} | ||
build_flags = ${common.build_flags} ${esp32s3.build_flags} | ||
build_flags = ${common.build_flags} ${esp32s3.build_flags} | ||
-D CONFIG_LITTLEFS_FOR_IDF_3_2 -D WLED_WATCHDOG_TIMEOUT=0 | ||
-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=0 ;; for boards with USB-OTG connector only (USBCDC or "TinyUSB") | ||
|
@@ -483,7 +491,7 @@ platform = ${esp32s3.platform} | |
platform_packages = ${esp32s3.platform_packages} | ||
upload_speed = 921600 | ||
build_unflags = ${common.build_unflags} | ||
build_flags = ${common.build_flags} ${esp32s3.build_flags} | ||
build_flags = ${common.build_flags} ${esp32s3.build_flags} | ||
-D CONFIG_LITTLEFS_FOR_IDF_3_2 -D WLED_WATCHDOG_TIMEOUT=0 | ||
;-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=0 ;; for boards with USB-OTG connector only (USBCDC or "TinyUSB") | ||
|
@@ -605,7 +613,8 @@ board_build.flash_mode = dio | |
|
||
[env:wemos_shield_esp32] | ||
board = esp32dev | ||
platform = [email protected] | ||
platform = ${esp32.platform} | ||
platform_packages = ${esp32.platform_packages} | ||
upload_speed = 460800 | ||
build_unflags = ${common.build_unflags} | ||
build_flags = ${common.build_flags_esp32} | ||
|
@@ -630,7 +639,8 @@ board = esp32dev | |
build_unflags = ${common.build_unflags} | ||
build_flags = ${common.build_flags_esp32} -D LEDPIN=27 -D BTNPIN=39 | ||
lib_deps = ${esp32.lib_deps} | ||
platform = [email protected] | ||
platform = ${esp32.platform} | ||
platform_packages = ${esp32.platform_packages} | ||
board_build.partitions = ${esp32.default_partitions} | ||
|
||
[env:sp501e] | ||
|
@@ -736,7 +746,8 @@ lib_deps = ${esp8266.lib_deps} | |
# ------------------------------------------------------------------------------ | ||
[env:elekstube_ips] | ||
board = esp32dev | ||
platform = [email protected] | ||
platform = ${esp32.platform} | ||
platform_packages = ${esp32.platform_packages} | ||
upload_speed = 921600 | ||
build_flags = ${common.build_flags_esp32} -D WLED_DISABLE_BROWNOUT_DET -D WLED_DISABLE_INFRARED | ||
-D USERMOD_RTC | ||
|