From 53d5775c6ad54e3f5ab59bef2140215c6b7e1893 Mon Sep 17 00:00:00 2001 From: Torrie Fischer Date: Sun, 19 Feb 2023 18:47:48 +0100 Subject: [PATCH] platformio: update u8 lib, add new display esp32 variant --- platformio.ini | 41 +++++++++++++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/platformio.ini b/platformio.ini index a901e18..504d33a 100644 --- a/platformio.ini +++ b/platformio.ini @@ -9,7 +9,7 @@ ; https://docs.platformio.org/page/projectconf.html [common_env_data] -src_filter = "+<*> -<.git/> -<.svn/> - -" +src_filter = "+<*> -<.git/> -<.svn/> - - +" lib_ldf_mode = chain+ extra_scripts = verify-configs.py src_build_flags = @@ -27,7 +27,7 @@ lib_deps_external = src_build_flags = -DCONFIG_U8DISPLAY lib_deps = - olikraus/U8g2@2.28.8 + olikraus/U8g2@2.34.13 src_filter = "+" [config_mqtt] @@ -93,6 +93,7 @@ src_build_flags = [env:esp32] extends = config_nocolor extra_scripts = verify-configs.py +board_build.filesystem = littlefs platform = espressif32 board = featheresp32 framework = arduino @@ -101,12 +102,12 @@ src_build_flags = ${config_nocolor.src_build_flags} -DPLATFORM_ARDUINO -DBOARD_ESP32 -; -DCONFIG_THREADED_INPUTS + -DCONFIG_THREADED_INPUTS lib_deps = ${common_env_data.lib_deps_external} src_filter = "${common_env_data.src_filter}" -board_build.partitions = no_ota.csv monitor_filters = esp32_exception_decoder +monitor_speed = 115200 upload_speed = 115200 [env:esp8266-12f] @@ -140,11 +141,12 @@ src_build_flags = ${env:esp32.src_build_flags} ${config_bluetooth.src_build_flags} ${config_wifi.src_build_flags} - -DRENDERBUG_LED_PIN=13 + -DRENDERBUG_LED_PIN=14 [env:esp32_wifi] extends = env:esp32, config_wifi, config_mqtt src_filter = "${env:esp32.src_filter} ${config_wifi.src_filter} ${config_mqtt.src_filter}" +buid_type = debug lib_deps = ${env:esp32.lib_deps} ${config_mqtt.lib_deps} @@ -152,7 +154,34 @@ src_build_flags = ${env:esp32.src_build_flags} ${config_mqtt.src_build_flags} ${config_wifi.src_build_flags} - -DRENDERBUG_LED_PIN=13 + -DRENDERBUG_LED_PIN=14 + +[env:esp32_display] +extends = env:esp32, config_u8display +src_filter = "${env:esp32.src_filter} ${config_u8display.src_filter}" +build_type = debug +lib_deps = + ${env:esp32.lib_deps} + ${config_u8display.lib_deps} +src_build_flags = + ${env:esp32.src_build_flags} + ${config_u8display.src_build_flags} + -DRENDERBUG_LED_PIN=14 + +[env:esp32_wifi_display] +extends = env:esp32, config_wifi, config_mqtt, config_u8display +src_filter = "${env:esp32.src_filter} ${config_wifi.src_filter} ${config_mqtt.src_filter} ${config_u8display.src_filter}" +build_type = debug +lib_deps = + ${env:esp32.lib_deps} + ${config_mqtt.lib_deps} + ${config_u8display.lib_deps} +src_build_flags = + ${env:esp32.src_build_flags} + ${config_mqtt.src_build_flags} + ${config_wifi.src_build_flags} + ${config_u8display.src_build_flags} + -DRENDERBUG_LED_PIN=14 [env:prototype] extends = env:esp32, config_buttons, config_mpu5060