platformio: update platformio.ini with stream deps, simplify configs

This commit is contained in:
Torrie Fischer 2023-12-23 11:09:15 +01:00
parent 418e13b797
commit 3f3f9eb801
2 changed files with 26 additions and 65 deletions

7
default-partitions.csv Normal file
View File

@ -0,0 +1,7 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x140000,
app1, app, ota_1, 0x150000,0x140000,
spiffs, data, spiffs, 0x290000,0x160000,
coredump, data, coredump,0x3F0000,0x10000,
1 # Name Type SubType Offset Size Flags
2 nvs data nvs 0x9000 0x5000
3 otadata data ota 0xe000 0x2000
4 app0 app ota_0 0x10000 0x140000
5 app1 app ota_1 0x150000 0x140000
6 spiffs data spiffs 0x290000 0x160000
7 coredump data coredump 0x3F0000 0x10000

View File

@ -9,75 +9,43 @@
; https://docs.platformio.org/page/projectconf.html ; https://docs.platformio.org/page/projectconf.html
[env] [env]
extra_scripts = pre:verify-configs.py, pre:build-hal.py
build_flags =
-DFASTLED_ALL_PINS_HARDWARE_SPI
[common_env_data]
src_filter = +<*>, -<.git/>, -<.svn/>, -<platform/> src_filter = +<*>, -<.git/>, -<.svn/>, -<platform/>
lib_ldf_mode = chain+ lib_ldf_mode = chain+
extra_scripts = pre:verify-configs.py, pre:build-hal.py
check_flags =
cppcheck: --inline-suppr --suppress=*:*/.pio/*
board_build.filesystem = littlefs
upload_speed = 115200
monitor_speed = 115200
build_type = debug
build_flags =
-DFASTLED_ALL_PINS_HARDWARE_SPI
src_build_flags = src_build_flags =
-DFASTLED_ALL_PINS_HARDWARE_SPI
-DRENDERBUG_VERSION=3 -DRENDERBUG_VERSION=3
-DRENDERBUG_LED_PIN=14 -DRENDERBUG_LED_PIN=14
-DRENDERBUG_LED_PACKING=RGB -DRENDERBUG_LED_PACKING=RGB
-DDEFAULT_PATTERN_INDEX=0 -DDEFAULT_PATTERN_INDEX=0
-fstack-protector -fstack-protector
-Wall -Wall
lib_deps_external = lib_deps =
fastled/FastLED@^3.6.0 fastled/FastLED@^3.6.0
thijse/ArduinoLog@^1.1.0 thijse/ArduinoLog@^1.1.0
bblanchon/ArduinoJson@^6.21.4 bblanchon/ArduinoJson@^6.21.4
JsonStreamingParser JsonStreamingParser
LittleFS LittleFS
knolleary/PubSubClient@^2.8.0
[config_u8display] bblanchon/StreamUtils@^1.8.0
src_build_flags =
-DCONFIG_U8DISPLAY
lib_deps =
olikraus/U8g2@^2.34.15
src_filter = "+<platform/arduino/U8Display.cpp>"
[config_ota]
src_build_flags =
src_filter = "+<platform/arduino/OTA.cpp>"
lib_deps =
[config_nocolor]
src_build_flags =
-DCONFIG_NO_COLORDATA
[config_buttons]
src_build_flags =
-DCONFIG_BUTTONS
src_filter = "+<inputs/Buttons.cpp>"
[config_mpu5060]
src_build_flags =
-DCONFIG_MPU5060
src_filter = "+<inputs/MPU6050.cpp>"
[env:esp32] [env:esp32]
extends = config_nocolor
board_build.filesystem = littlefs
platform = espressif32 platform = espressif32
board = featheresp32 board = featheresp32
framework = arduino framework = arduino
check_flags = board_build.partitions = default-partitions.csv
cppcheck: --inline-suppr --suppress=*:*/.pio/*
src_build_flags = src_build_flags =
${common_env_data.src_build_flags} ${env.src_build_flags}
${config_nocolor.src_build_flags}
-DBOARD_ESP32
-DCONFIG_THREADED_INPUTS -DCONFIG_THREADED_INPUTS
-DRENDERBUG_LED_PIN=14
lib_deps =
${common_env_data.lib_deps_external}
BluetoothSerial
knolleary/PubSubClient@^2.8.0
src_filter = "${common_env_data.src_filter}"
monitor_filters = esp32_exception_decoder monitor_filters = esp32_exception_decoder
monitor_speed = 115200
upload_speed = 115200
[env:esp8266-12f] [env:esp8266-12f]
extends = env:esp8266 extends = env:esp8266
@ -87,38 +55,24 @@ board = esp12e
platform = atmelavr platform = atmelavr
board = uno board = uno
framework = arduino framework = arduino
lib_deps =
${common_env_data.lib_deps_external}
[env:esp8266] [env:esp8266]
check_flags =
cppcheck: --inline-suppr --suppress=*:*/.pio/*
platform = espressif8266 platform = espressif8266
board = huzzah board = huzzah
framework = arduino framework = arduino
board_build.filesystem = littlefs
monitor_filters = esp8266_exception_decoder monitor_filters = esp8266_exception_decoder
upload_speed = 115200
monitor_speed = 115200
src_build_flags =
${common_env_data.src_build_flags}
lib_deps = lib_deps =
${common_env_data.lib_deps_external} ${env.lib_deps}
knolleary/PubSubClient@^2.8.0
arduino-libraries/NTPClient@^3.1.0 arduino-libraries/NTPClient@^3.1.0
ESP8266WiFi ESP8266WiFi
ESP8266mDNS ESP8266mDNS
ArduinoOTA ArduinoOTA
src_filter = "${common_env_data.src_filter}"
[env:esp32_display] [env:esp32_display]
extends = env:esp32, config_u8display extends = env:esp32
src_filter = "${env:esp32.src_filter} ${config_u8display.src_filter}"
build_type = debug
lib_deps = lib_deps =
${env:esp32.lib_deps} ${env:esp32.lib_deps}
${config_u8display.lib_deps} olikraus/U8g2@^2.34.15
src_build_flags = src_build_flags =
${env:esp32.src_build_flags} ${env:esp32.src_build_flags}
${config_u8display.src_build_flags} -DCONFIG_U8DISPLAY
-DRENDERBUG_LED_PIN=14