Skip to content

Commit 5372388

Browse files
authored
Merge pull request meshcore-dev#2353 from jirogit/fix/techo-lite-non-shell-ble-clean
feat(techo-lite): add Non-Shell companion BLE variant
2 parents dc54857 + 28b1586 commit 5372388

2 files changed

Lines changed: 49 additions & 2 deletions

File tree

boards/t-echo.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,14 @@
5353
"protocols": [
5454
"jlink",
5555
"nrfjprog",
56+
"nrfutil",
5657
"stlink",
5758
"cmsis-dap",
5859
"blackmagic"
59-
]
60+
],
61+
"use_1200bps_touch": true,
62+
"wait_for_upload_port": true
6063
},
6164
"url": "https://os.mbed.com/platforms/Nordic-nRF52840-DK/",
6265
"vendor": "Nordic"
63-
}
66+
}

variants/lilygo_techo_lite/platformio.ini

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,47 @@ build_src_filter = ${LilyGo_T-Echo-Lite.build_src_filter}
9696
lib_deps =
9797
${LilyGo_T-Echo-Lite.lib_deps}
9898
densaugeo/base64 @ ~1.4.0
99+
100+
[env:LilyGo_T-Echo-Lite_non_shell_companion_radio_ble]
101+
extends = LilyGo_T-Echo-Lite
102+
upload_protocol = nrfutil
103+
board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld
104+
board_upload.maximum_size = 712704
105+
build_flags =
106+
${nrf52_base.build_flags}
107+
-I variants/lilygo_techo_lite
108+
-I src/helpers/nrf52
109+
-I lib/nrf52/s140_nrf52_6.1.1_API/include
110+
-I lib/nrf52/s140_nrf52_6.1.1_API/include/nrf52
111+
-I src/helpers/ui
112+
-I examples/companion_radio/ui-new
113+
-D LILYGO_TECHO
114+
-D RADIO_CLASS=CustomSX1262
115+
-D WRAPPER_CLASS=CustomSX1262Wrapper
116+
-D LORA_TX_POWER=22
117+
-D SX126X_POWER_EN=30
118+
-D SX126X_CURRENT_LIMIT=140
119+
-D SX126X_RX_BOOSTED_GAIN=1
120+
-D P_LORA_TX_LED=LED_GREEN
121+
-D DISABLE_DIAGNOSTIC_OUTPUT
122+
-D ENV_INCLUDE_GPS=1
123+
-D GPS_BAUD_RATE=9600
124+
-D PIN_GPS_EN=GPS_EN
125+
-D AUTO_OFF_MILLIS=0
126+
-D MAX_CONTACTS=350
127+
-D MAX_GROUP_CHANNELS=40
128+
-D BLE_PIN_CODE=123456
129+
-D OFFLINE_QUEUE_SIZE=256
130+
-D UI_RECENT_LIST_SIZE=9
131+
-D AUTO_SHUTDOWN_MILLIVOLTS=3300
132+
build_src_filter = ${nrf52_base.build_src_filter}
133+
+<helpers/*.cpp>
134+
+<TechoBoard.cpp>
135+
+<helpers/sensors/EnvironmentSensorManager.cpp>
136+
+<helpers/ui/MomentaryButton.cpp>
137+
+<../variants/lilygo_techo_lite>
138+
+<helpers/nrf52/SerialBLEInterface.cpp>
139+
+<../examples/companion_radio/*.cpp>
140+
lib_deps =
141+
${LilyGo_T-Echo-Lite.lib_deps}
142+
densaugeo/base64 @ ~1.4.0

0 commit comments

Comments
 (0)