|
|
@@ -6,6 +6,8 @@ build_type = release ; Set build type to release
|
|
|
board_build.partitions = min_spiffs.csv ; get around 4mb flash limit
|
|
|
build_flags =
|
|
|
${esp32_base.build_flags}
|
|
|
+ ${sensor_base.build_flags}
|
|
|
+ -UENV_INCLUDE_GPS
|
|
|
-I variants/lilygo_tlora_v2_1
|
|
|
-Os -ffunction-sections -fdata-sections ; Optimize for size
|
|
|
-D LILYGO_TLORA ; LILYGO T-LoRa V2.1-1.6 ESP32 with SX1276
|
|
|
@@ -27,28 +29,18 @@ build_flags =
|
|
|
-D WRAPPER_CLASS=CustomSX1276Wrapper
|
|
|
-D SX127X_CURRENT_LIMIT=120
|
|
|
-D LORA_TX_POWER=20
|
|
|
- -D ENV_INCLUDE_AHTX0=1
|
|
|
- -D ENV_INCLUDE_BME280=1
|
|
|
- -D ENV_INCLUDE_BMP280=1
|
|
|
- -D ENV_INCLUDE_INA3221=1
|
|
|
- -D ENV_INCLUDE_INA219=1
|
|
|
build_src_filter = ${esp32_base.build_src_filter}
|
|
|
+ +<helpers/ui/SSD1306Display.cpp>
|
|
|
+<../variants/lilygo_tlora_v2_1>
|
|
|
+<helpers/sensors>
|
|
|
lib_deps =
|
|
|
${esp32_base.lib_deps}
|
|
|
- adafruit/Adafruit SSD1306 @ ^2.5.13
|
|
|
- adafruit/Adafruit INA3221 Library @ ^1.0.1
|
|
|
- adafruit/Adafruit INA219 @ ^1.2.3
|
|
|
- adafruit/Adafruit AHTX0 @ ^2.0.5
|
|
|
- adafruit/Adafruit BME280 Library @ ^2.3.0
|
|
|
- adafruit/Adafruit BMP280 Library @ ^2.6.8
|
|
|
+ ${sensor_base.lib_deps}
|
|
|
|
|
|
; === LILYGO T-LoRa V2.1-1.6 with SX1276 environments ===
|
|
|
[env:LilyGo_TLora_V2_1_1_6_repeater]
|
|
|
extends = LilyGo_TLora_V2_1_1_6
|
|
|
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
|
|
|
- +<helpers/ui/SSD1306Display.cpp>
|
|
|
+<../examples/simple_repeater>
|
|
|
build_flags =
|
|
|
${LilyGo_TLora_V2_1_1_6.build_flags}
|
|
|
@@ -73,7 +65,6 @@ build_flags =
|
|
|
; -D MESH_PACKET_LOGGING=1
|
|
|
; -D MESH_DEBUG=1
|
|
|
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
|
|
|
- +<helpers/ui/SSD1306Display.cpp>
|
|
|
+<../examples/simple_repeater>
|
|
|
lib_deps =
|
|
|
${LilyGo_TLora_V2_1_1_6.lib_deps}
|
|
|
@@ -89,7 +80,6 @@ build_flags =
|
|
|
; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
|
|
|
; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
|
|
|
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
|
|
|
- +<helpers/ui/SSD1306Display.cpp>
|
|
|
+<helpers/ui/MomentaryButton.cpp>
|
|
|
+<../examples/companion_radio/*.cpp>
|
|
|
+<../examples/companion_radio/ui-new/*.cpp>
|
|
|
@@ -111,7 +101,6 @@ build_flags =
|
|
|
; -D MESH_DEBUG=1
|
|
|
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
|
|
|
+<helpers/esp32/*.cpp>
|
|
|
- +<helpers/ui/SSD1306Display.cpp>
|
|
|
+<helpers/ui/MomentaryButton.cpp>
|
|
|
+<../examples/companion_radio/*.cpp>
|
|
|
+<../examples/companion_radio/ui-new/*.cpp>
|
|
|
@@ -149,7 +138,6 @@ build_flags =
|
|
|
-D WIFI_DEBUG_LOGGING=1
|
|
|
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
|
|
|
+<helpers/esp32/*.cpp>
|
|
|
- +<helpers/ui/SSD1306Display.cpp>
|
|
|
+<helpers/ui/MomentaryButton.cpp>
|
|
|
+<../examples/companion_radio/*.cpp>
|
|
|
+<../examples/companion_radio/ui-new/*.cpp>
|
|
|
@@ -163,7 +151,6 @@ lib_deps =
|
|
|
[env:LilyGo_TLora_V2_1_1_6_repeater_bridge_rs232]
|
|
|
extends = LilyGo_TLora_V2_1_1_6
|
|
|
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
|
|
|
- +<helpers/ui/SSD1306Display.cpp>
|
|
|
+<helpers/bridges/RS232Bridge.cpp>
|
|
|
+<../examples/simple_repeater>
|
|
|
build_flags =
|
|
|
@@ -187,7 +174,6 @@ lib_deps =
|
|
|
[env:LilyGo_TLora_V2_1_1_6_repeater_bridge_espnow]
|
|
|
extends = LilyGo_TLora_V2_1_1_6
|
|
|
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
|
|
|
- +<helpers/ui/SSD1306Display.cpp>
|
|
|
+<helpers/bridges/ESPNowBridge.cpp>
|
|
|
+<../examples/simple_repeater>
|
|
|
build_flags =
|