Skip to content

Commit 53a2ae9

Browse files
authored
Merge pull request #923 from recrof/tlora_1.6_cleanup
TLora V2.1 1.6 cleanup
2 parents 798725d + 69cddbc commit 53a2ae9

File tree

3 files changed

+7
-22
lines changed

3 files changed

+7
-22
lines changed

src/helpers/LilyGoTLoraBoard.h renamed to variants/lilygo_tlora_v2_1/LilyGoTLoraBoard.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#pragma once
22

33
#include <Arduino.h>
4-
#include "ESP32Board.h"
4+
#include <helpers/ESP32Board.h>
55

66
// LILYGO T-LoRa V2.1-1.6 board with SX1276
77
class LilyGoTLoraBoard : public ESP32Board {
88
public:
99
const char* getManufacturerName() const override {
1010
return "LILYGO T-LoRa V2.1-1.6";
1111
}
12-
12+
1313
uint16_t getBattMilliVolts() override {
1414
analogReadResolution(12);
1515

variants/lilygo_tlora_v2_1/platformio.ini

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ build_type = release ; Set build type to release
66
board_build.partitions = min_spiffs.csv ; get around 4mb flash limit
77
build_flags =
88
${esp32_base.build_flags}
9+
${sensor_base.build_flags}
10+
-UENV_INCLUDE_GPS
911
-I variants/lilygo_tlora_v2_1
1012
-Os -ffunction-sections -fdata-sections ; Optimize for size
1113
-D LILYGO_TLORA ; LILYGO T-LoRa V2.1-1.6 ESP32 with SX1276
@@ -27,28 +29,18 @@ build_flags =
2729
-D WRAPPER_CLASS=CustomSX1276Wrapper
2830
-D SX127X_CURRENT_LIMIT=120
2931
-D LORA_TX_POWER=20
30-
-D ENV_INCLUDE_AHTX0=1
31-
-D ENV_INCLUDE_BME280=1
32-
-D ENV_INCLUDE_BMP280=1
33-
-D ENV_INCLUDE_INA3221=1
34-
-D ENV_INCLUDE_INA219=1
3532
build_src_filter = ${esp32_base.build_src_filter}
33+
+<helpers/ui/SSD1306Display.cpp>
3634
+<../variants/lilygo_tlora_v2_1>
3735
+<helpers/sensors>
3836
lib_deps =
3937
${esp32_base.lib_deps}
40-
adafruit/Adafruit SSD1306 @ ^2.5.13
41-
adafruit/Adafruit INA3221 Library @ ^1.0.1
42-
adafruit/Adafruit INA219 @ ^1.2.3
43-
adafruit/Adafruit AHTX0 @ ^2.0.5
44-
adafruit/Adafruit BME280 Library @ ^2.3.0
45-
adafruit/Adafruit BMP280 Library @ ^2.6.8
38+
${sensor_base.lib_deps}
4639

4740
; === LILYGO T-LoRa V2.1-1.6 with SX1276 environments ===
4841
[env:LilyGo_TLora_V2_1_1_6_repeater]
4942
extends = LilyGo_TLora_V2_1_1_6
5043
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
51-
+<helpers/ui/SSD1306Display.cpp>
5244
+<../examples/simple_repeater>
5345
build_flags =
5446
${LilyGo_TLora_V2_1_1_6.build_flags}
@@ -73,7 +65,6 @@ build_flags =
7365
; -D MESH_PACKET_LOGGING=1
7466
; -D MESH_DEBUG=1
7567
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
76-
+<helpers/ui/SSD1306Display.cpp>
7768
+<../examples/simple_repeater>
7869
lib_deps =
7970
${LilyGo_TLora_V2_1_1_6.lib_deps}
@@ -89,7 +80,6 @@ build_flags =
8980
; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
9081
; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
9182
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
92-
+<helpers/ui/SSD1306Display.cpp>
9383
+<helpers/ui/MomentaryButton.cpp>
9484
+<../examples/companion_radio/*.cpp>
9585
+<../examples/companion_radio/ui-new/*.cpp>
@@ -111,7 +101,6 @@ build_flags =
111101
; -D MESH_DEBUG=1
112102
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
113103
+<helpers/esp32/*.cpp>
114-
+<helpers/ui/SSD1306Display.cpp>
115104
+<helpers/ui/MomentaryButton.cpp>
116105
+<../examples/companion_radio/*.cpp>
117106
+<../examples/companion_radio/ui-new/*.cpp>
@@ -149,7 +138,6 @@ build_flags =
149138
-D WIFI_DEBUG_LOGGING=1
150139
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
151140
+<helpers/esp32/*.cpp>
152-
+<helpers/ui/SSD1306Display.cpp>
153141
+<helpers/ui/MomentaryButton.cpp>
154142
+<../examples/companion_radio/*.cpp>
155143
+<../examples/companion_radio/ui-new/*.cpp>
@@ -163,7 +151,6 @@ lib_deps =
163151
[env:LilyGo_TLora_V2_1_1_6_repeater_bridge_rs232]
164152
extends = LilyGo_TLora_V2_1_1_6
165153
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
166-
+<helpers/ui/SSD1306Display.cpp>
167154
+<helpers/bridges/RS232Bridge.cpp>
168155
+<../examples/simple_repeater>
169156
build_flags =
@@ -187,7 +174,6 @@ lib_deps =
187174
[env:LilyGo_TLora_V2_1_1_6_repeater_bridge_espnow]
188175
extends = LilyGo_TLora_V2_1_1_6
189176
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
190-
+<helpers/ui/SSD1306Display.cpp>
191177
+<helpers/bridges/ESPNowBridge.cpp>
192178
+<../examples/simple_repeater>
193179
build_flags =

variants/lilygo_tlora_v2_1/target.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
#define RADIOLIB_STATIC_ONLY 1
44
#include <RadioLib.h>
55
#include <helpers/radiolib/RadioLibWrappers.h>
6-
#include <helpers/LilyGoTLoraBoard.h>
6+
#include <LilyGoTLoraBoard.h>
77
#include <helpers/radiolib/CustomSX1276Wrapper.h>
88
#include <helpers/AutoDiscoverRTCClock.h>
9-
#include <helpers/SensorManager.h>
109
#include <helpers/sensors/EnvironmentSensorManager.h>
1110
#ifdef DISPLAY_CLASS
1211
#include <helpers/ui/SSD1306Display.h>

0 commit comments

Comments
 (0)