Skip to content

Commit

Permalink
Clean up platformio.ini. Move common definitions into the [env] section.
Browse files Browse the repository at this point in the history
  • Loading branch information
luebbe committed Feb 4, 2024
1 parent bb7a907 commit 79449c6
Showing 1 changed file with 26 additions and 41 deletions.
67 changes: 26 additions & 41 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,16 @@
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:ulanzi]
platform = [email protected]
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/[email protected]
fastled/FastLED@^3.6.0
Expand All @@ -35,13 +27,24 @@ lib_deps =
luisllamasbinaburo/MedianFilterLib@^1.0.0
luisllamasbinaburo/MeanFilterLib@^1.0.0

[env:ulanzi]
platform = [email protected]
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
Expand All @@ -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/[email protected]
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/[email protected]
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

0 comments on commit 79449c6

Please sign in to comment.