From 04bbd582bdbd14eadcf154ff1b87da6684480eb6 Mon Sep 17 00:00:00 2001 From: pelgraine <140762863+pelgraine@users.noreply.github.com> Date: Sun, 18 Oct 2026 13:30:51 +1100 Subject: [PATCH] Pro combined ble wifi 4G and Audio builds --- variants/lilygo_tdeck_pro/platformio.ini | 73 ++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/variants/lilygo_tdeck_pro/platformio.ini b/variants/lilygo_tdeck_pro/platformio.ini index e8eedd5d..029ee6b2 100644 --- a/variants/lilygo_tdeck_pro/platformio.ini +++ b/variants/lilygo_tdeck_pro/platformio.ini @@ -311,6 +311,43 @@ lib_ignore = ESPAsyncWebServer ESP32 BLE Arduino +; Audio combined BLE + WiFi companion: TEST BUILD (same as meck_max_ble_wifi). +; Both connections built in, both off at boot. Whichever is turned on first +; after a restart works directly; switching to the other restarts the device. +; Free memory is logged on serial ("MEM ...") at boot, after each switch and +; when the Web Reader starts. Flags are meck_audio_ble's plus meck_audio_wifi's. +[env:meck_audio_ble_wifi] +extends = LilyGo_TDeck_Pro +build_flags = + ${LilyGo_TDeck_Pro.build_flags} + -I examples/companion_radio/ui-new + -D MAX_CONTACTS=2000 + -D MAX_GROUP_CHANNELS=40 + -D BLE_PIN_CODE=123456 + -D MECK_WIFI_COMPANION=1 + -D TCP_PORT=5000 + -D OFFLINE_QUEUE_SIZE=256 + -D MECK_AUDIO_VARIANT + -D MECK_WEB_READER=1 + -D MECK_OTA_UPDATE=1 + -D FIRMWARE_VERSION='"Meck v1.15.1.BLE-WiFi"' + ;-D WIFI_DEBUG_LOGGING=1 +build_src_filter = ${LilyGo_TDeck_Pro.build_src_filter} + + + + + +<../examples/companion_radio/*.cpp> + +<../examples/companion_radio/ui-new/*.cpp> + + +lib_deps = + ${LilyGo_TDeck_Pro.lib_deps} + densaugeo/base64 @ ~1.4.0 + https://github.com/schreibfaul1/ESP32-audioI2S.git#2.0.6 + bitbank2/JPEGDEC + https://github.com/sh123/esp32_codec2_arduino.git +lib_ignore = + AsyncTCP + ESPAsyncWebServer + ; Audio standalone (audio-player hardware, no BLE/WiFi — maximum battery life) ; No MECK_WEB_READER: WiFi power draw conflicts with zero-radio-power design. ; OTA enabled: WiFi AP activates only during user-initiated firmware updates. @@ -498,6 +535,42 @@ lib_ignore = esp32_codec2_arduino ESP32 BLE Arduino +; 4G combined BLE + WiFi companion: TEST BUILD (same as meck_max_ble_wifi). +; Both connections built in, both off at boot. Whichever is turned on first +; after a restart works directly; switching to the other restarts the device. +; Free memory is logged on serial ("MEM ...") at boot, after each switch and +; when the Web Reader starts. Flags are meck_4g_ble's plus meck_4g_wifi's. +[env:meck_4g_ble_wifi] +extends = LilyGo_TDeck_Pro +build_flags = + ${LilyGo_TDeck_Pro.build_flags} + -I examples/companion_radio/ui-new + -D MAX_CONTACTS=2000 + -D MAX_GROUP_CHANNELS=40 + -D BLE_PIN_CODE=123456 + -D MECK_WIFI_COMPANION=1 + -D TCP_PORT=5000 + -D WIFI_DEBUG_LOGGING=1 + -D OFFLINE_QUEUE_SIZE=256 + -D HAS_4G_MODEM=1 + -D MECK_WEB_READER=1 + -D MECK_OTA_UPDATE=1 + -D FIRMWARE_VERSION='"Meck v1.15.1.4G.BLE-WiFi"' +build_src_filter = ${LilyGo_TDeck_Pro.build_src_filter} + + + + + +<../examples/companion_radio/*.cpp> + +<../examples/companion_radio/ui-new/*.cpp> + + +lib_deps = + ${LilyGo_TDeck_Pro.lib_deps} + densaugeo/base64 @ ~1.4.0 +lib_ignore = + AsyncTCP + ESPAsyncWebServer + ESP32-audioI2S + esp32_codec2_arduino + ; 4G standalone (4G modem hardware, no BLE — maximum battery + cellular features) ; No BLE_PIN_CODE: BLE never initializes, saving ~30KB heap + radio power. ; MECK_WEB_READER enabled: works better without BLE (no teardown dance needed,