From 79449c6015dfbf13b7e25146383d8f10d5bb0db1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=BCbbe=20Onken?= Date: Sun, 4 Feb 2024 15:08:35 +0100 Subject: [PATCH] Clean up platformio.ini. Move common definitions into the [env] section. --- platformio.ini | 67 ++++++++++++++++++++------------------------------ 1 file changed, 26 insertions(+), 41 deletions(-) diff --git a/platformio.ini b/platformio.ini index d80c6974..2f2a8731 100644 --- a/platformio.ini +++ b/platformio.ini @@ -8,24 +8,16 @@ ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html -[env:ulanzi] -platform = espressif32@6.3.0 -board = esp32dev -upload_speed = 921600 +[platformio] +default_envs = ulanzi + +[env] framework = arduino board_build.f_cpu = 240000000L +upload_speed = 921600 monitor_speed = 115200 -build_flags = - -DULANZI - -DMQTT_MAX_PACKET_SIZE=8192 - -D CORE_DEBUG_LEVEL=0 - -D NDEBUG - -Wno-attributes - -Os - -fno-exceptions monitor_filters = esp32_exception_decoder lib_deps = - adafruit/Adafruit SHT31 Library@^2.2.0 bblanchon/ArduinoJson@^6.20.0 evert-arias/EasyButton@2.0.1 fastled/FastLED@^3.6.0 @@ -35,13 +27,24 @@ lib_deps = luisllamasbinaburo/MedianFilterLib@^1.0.0 luisllamasbinaburo/MeanFilterLib@^1.0.0 +[env:ulanzi] +platform = espressif32@6.3.0 +board = esp32dev +build_flags = + -DULANZI + -DMQTT_MAX_PACKET_SIZE=8192 + -D CORE_DEBUG_LEVEL=0 + -D NDEBUG + -Wno-attributes + -Os + -fno-exceptions +lib_deps = + ${env.lib_deps} + adafruit/Adafruit SHT31 Library@^2.2.0 + [env:awtrix2_upgrade] platform = espressif32 board = wemos_d1_mini32 -upload_speed = 921600 -board_build.f_cpu = 240000000L -framework = arduino -monitor_speed = 115200 build_flags = -Dawtrix2_upgrade -DMQTT_MAX_PACKET_SIZE=8192 @@ -50,37 +53,19 @@ build_flags = -Wno-attributes -Os -fno-exceptions -monitor_filters = esp32_exception_decoder lib_deps = + ${env.lib_deps} adafruit/Adafruit BME280 Library@^2.2.2 adafruit/Adafruit BMP280 Library@^2.6.8 adafruit/Adafruit HTU21DF Library@^1.0.5 plerup/EspSoftwareSerial@^8.0.1 - bblanchon/ArduinoJson@^6.20.0 - evert-arias/EasyButton@2.0.1 - fastled/FastLED@^3.5.0 - marcmerlin/FastLED NeoMatrix@^1.2 - knolleary/PubSubClient@^2.8 - densaugeo/base64@^1.4.0 - luisllamasbinaburo/MedianFilterLib@^1.0.0 - luisllamasbinaburo/MeanFilterLib@^1.0.0 [env:ESP32_S3] platform = espressif32 board = esp32-s3-devkitc-1-n16r8v -upload_speed = 921600 -board_build.f_cpu = 240000000L -framework = arduino -monitor_speed = 115200 -build_flags = -DESP32_S3 -D MQTT_MAX_PACKET_SIZE=8192 -monitor_filters = esp32_exception_decoder +build_flags = + -DESP32_S3 + -D MQTT_MAX_PACKET_SIZE=8192 lib_deps = - adafruit/Adafruit SHT31 Library@^2.2.0 - bblanchon/ArduinoJson@^6.20.0 - evert-arias/EasyButton@2.0.1 - fastled/FastLED@^3.6.0 - marcmerlin/FastLED NeoMatrix@^1.2 - knolleary/PubSubClient@^2.8 - densaugeo/base64@^1.4.0 - luisllamasbinaburo/MedianFilterLib@^1.0.0 - luisllamasbinaburo/MeanFilterLib@^1.0.0 + ${env.lib_deps} + adafruit/Adafruit SHT31 Library@^2.2.0 \ No newline at end of file