Skip to content

Commit 676ba6d

Browse files
authored
Merge pull request #81 from recrof/dev
roles: t-echo, t114: +room_server; WSL3: +room_server, +repeater
2 parents 2cb742b + a16393e commit 676ba6d

File tree

4 files changed

+171
-110
lines changed

4 files changed

+171
-110
lines changed

boards/t-echo.json

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,62 @@
11
{
2-
"build": {
3-
"arduino": {
4-
"ldscript": "nrf52840_s140_v6.ld"
5-
},
6-
"core": "nRF5",
7-
"cpu": "cortex-m4",
8-
"extra_flags": "-DARDUINO_NRF52840_PCA10056 -DNRF52840_XXAA",
9-
"f_cpu": "64000000L",
10-
"hwids": [
11-
[
12-
"0x239A",
13-
"0x8029"
14-
]
15-
],
16-
"usb_product": "NRF52 DK",
17-
"mcu": "nrf52840",
18-
"variant": "pca10056",
19-
"bsp": {
20-
"name": "adafruit"
21-
},
22-
"softdevice": {
23-
"sd_flags": "-DS140",
24-
"sd_name": "s140",
25-
"sd_version": "6.1.1",
26-
"sd_fwid": "0x00B6"
27-
},
28-
"bootloader": {
29-
"settings_addr": "0xFF000"
30-
}
31-
},
32-
"connectivity": [
33-
"bluetooth"
34-
],
35-
"debug": {
36-
"jlink_device": "nRF52840_xxAA",
37-
"onboard_tools": [
38-
"jlink"
39-
],
40-
"svd_path": "nrf52840.svd"
41-
},
42-
"frameworks": [
43-
"arduino"
44-
],
45-
"name": "LilyGo T-ECHO",
46-
"upload": {
47-
"maximum_ram_size": 248832,
48-
"maximum_size": 815104,
49-
"require_upload_port": true,
50-
"speed": 115200,
51-
"protocol": "jlink",
52-
"protocols": [
53-
"jlink",
54-
"nrfjprog",
55-
"stlink",
56-
"cmsis-dap",
57-
"blackmagic"
58-
]
59-
},
60-
"url": "https://os.mbed.com/platforms/Nordic-nRF52840-DK/",
61-
"vendor": "Nordic"
2+
"build": {
3+
"arduino": {
4+
"ldscript": "nrf52840_s140_v6.ld"
5+
},
6+
"core": "nRF5",
7+
"cpu": "cortex-m4",
8+
"extra_flags": "-DARDUINO_NRF52840_PCA10056 -DNRF52840_XXAA",
9+
"f_cpu": "64000000L",
10+
"hwids": [
11+
[
12+
"0x239A",
13+
"0x8029"
14+
]
15+
],
16+
"usb_product": "NRF52 DK",
17+
"mcu": "nrf52840",
18+
"variant": "pca10056",
19+
"bsp": {
20+
"name": "adafruit"
21+
},
22+
"softdevice": {
23+
"sd_flags": "-DS140",
24+
"sd_name": "s140",
25+
"sd_version": "6.1.1",
26+
"sd_fwid": "0x00B6"
27+
},
28+
"bootloader": {
29+
"settings_addr": "0xFF000"
30+
}
31+
},
32+
"connectivity": [
33+
"bluetooth"
34+
],
35+
"debug": {
36+
"jlink_device": "nRF52840_xxAA",
37+
"onboard_tools": [
38+
"jlink"
39+
],
40+
"svd_path": "nrf52840.svd"
41+
},
42+
"frameworks": [
43+
"arduino"
44+
],
45+
"name": "LilyGo T-ECHO",
46+
"upload": {
47+
"maximum_ram_size": 248832,
48+
"maximum_size": 815104,
49+
"require_upload_port": true,
50+
"speed": 115200,
51+
"protocol": "jlink",
52+
"protocols": [
53+
"jlink",
54+
"nrfjprog",
55+
"stlink",
56+
"cmsis-dap",
57+
"blackmagic"
58+
]
59+
},
60+
"url": "https://os.mbed.com/platforms/Nordic-nRF52840-DK/",
61+
"vendor": "Nordic"
6262
}

boards/t3_s3_v1_x.json

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
{
2-
"build": {
3-
"arduino": {
4-
"ldscript": "esp32s3_out.ld",
5-
"partitions": "default.csv",
6-
"memory_type": "qio_qspi"
7-
},
8-
"core": "esp32",
9-
"extra_flags": [
10-
"-DARDUINO_LILYGO_T3_S3_V1_X",
11-
"-DBOARD_HAS_PSRAM",
12-
"-DARDUINO_USB_CDC_ON_BOOT=1",
13-
"-DARDUINO_RUNNING_CORE=1",
14-
"-DARDUINO_EVENT_RUNNING_CORE=1",
15-
"-DARDUINO_USB_MODE=1"
16-
],
17-
"f_cpu": "240000000L",
18-
"f_flash": "80000000L",
19-
"flash_mode": "qio",
20-
"mcu": "esp32s3",
21-
"variant": "esp32s3"
2+
"build": {
3+
"arduino": {
4+
"ldscript": "esp32s3_out.ld",
5+
"partitions": "default.csv",
6+
"memory_type": "qio_qspi"
227
},
23-
"connectivity": [
24-
"wifi"
8+
"core": "esp32",
9+
"extra_flags": [
10+
"-DARDUINO_LILYGO_T3_S3_V1_X",
11+
"-DBOARD_HAS_PSRAM",
12+
"-DARDUINO_USB_CDC_ON_BOOT=1",
13+
"-DARDUINO_RUNNING_CORE=1",
14+
"-DARDUINO_EVENT_RUNNING_CORE=1",
15+
"-DARDUINO_USB_MODE=1"
2516
],
26-
"debug": {
27-
"openocd_target": "esp32s3.cfg"
28-
},
29-
"frameworks": [
30-
"arduino",
31-
"espidf"
32-
],
33-
"name": "LilyGo T3-S3 Radio",
34-
"upload": {
35-
"flash_size": "4MB",
36-
"maximum_ram_size": 327680,
37-
"maximum_size": 4194304,
38-
"use_1200bps_touch": true,
39-
"wait_for_upload_port": true,
40-
"require_upload_port": true,
41-
"speed": 460800
42-
},
43-
"url": "https://www.lilygo.cc",
44-
"vendor": "LilyGo"
17+
"f_cpu": "240000000L",
18+
"f_flash": "80000000L",
19+
"flash_mode": "qio",
20+
"mcu": "esp32s3",
21+
"variant": "esp32s3"
22+
},
23+
"connectivity": [
24+
"wifi"
25+
],
26+
"debug": {
27+
"openocd_target": "esp32s3.cfg"
28+
},
29+
"frameworks": [
30+
"arduino",
31+
"espidf"
32+
],
33+
"name": "LilyGo T3-S3 Radio",
34+
"upload": {
35+
"flash_size": "4MB",
36+
"maximum_ram_size": 327680,
37+
"maximum_size": 4194304,
38+
"use_1200bps_touch": true,
39+
"wait_for_upload_port": true,
40+
"require_upload_port": true,
41+
"speed": 460800
42+
},
43+
"url": "https://www.lilygo.cc",
44+
"vendor": "LilyGo"
4545
}

examples/simple_room_server/main.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@
9292
#include <helpers/nrf52/RAK4631Board.h>
9393
#include <helpers/CustomSX1262Wrapper.h>
9494
static RAK4631Board board;
95+
#elif defined(HELTEC_T114)
96+
#include <helpers/nrf52/T114Board.h>
97+
#include <helpers/CustomSX1262Wrapper.h>
98+
static T114Board board;
99+
#elif defined(LILYGO_TECHO)
100+
#include <helpers/nrf52/TechoBoard.h>
101+
#include <helpers/CustomSX1262Wrapper.h>
102+
static TechoBoard board;
95103
#else
96104
#error "need to provide a 'board' object"
97105
#endif

platformio.ini

Lines changed: 62 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -215,41 +215,68 @@ lib_deps =
215215
${Heltec_lora32_v3.lib_deps}
216216
densaugeo/base64 @ ~1.4.0
217217

218-
[env:Heltec_WSL3_companion_radio_ble]
218+
[env:Heltec_v3_companion_radio_wifi]
219219
extends = Heltec_lora32_v3
220220
build_flags =
221221
${Heltec_lora32_v3.build_flags}
222222
-D MAX_CONTACTS=100
223223
-D MAX_GROUP_CHANNELS=1
224-
-D BLE_PIN_CODE=123456
225-
-D BLE_DEBUG_LOGGING=1
224+
-D DISPLAY_CLASS=SSD1306Display
225+
-D WIFI_DEBUG_LOGGING=1
226+
-D WIFI_SSID="\"myssid\""
227+
-D WIFI_PWD="\"mypwd\""
226228
; -D ENABLE_PRIVATE_KEY_IMPORT=1
227229
; -D ENABLE_PRIVATE_KEY_EXPORT=1
228230
; -D MESH_PACKET_LOGGING=1
229231
; -D MESH_DEBUG=1
230232
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
233+
+<helpers/ui/*.cpp>
231234
+<helpers/esp32/*.cpp>
232235
+<../examples/companion_radio>
233236
lib_deps =
234237
${Heltec_lora32_v3.lib_deps}
235238
densaugeo/base64 @ ~1.4.0
236239

237-
[env:Heltec_v3_companion_radio_wifi]
240+
[env:Heltec_WSL3_repeater]
241+
extends = Heltec_lora32_v3
242+
build_flags =
243+
${Heltec_lora32_v3.build_flags}
244+
-D ADVERT_NAME="\"Heltec Repeater\""
245+
-D ADVERT_LAT=-37.0
246+
-D ADVERT_LON=145.0
247+
-D ADMIN_PASSWORD="\"password\""
248+
-D MESH_PACKET_LOGGING=1
249+
; -D MESH_DEBUG=1
250+
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
251+
+<../examples/simple_repeater>
252+
253+
[env:Heltec_WSL3_room_server]
254+
extends = Heltec_lora32_v3
255+
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
256+
+<../examples/simple_room_server>
257+
build_flags =
258+
${Heltec_lora32_v3.build_flags}
259+
-D ADVERT_NAME="\"Heltec Room\""
260+
-D ADVERT_LAT=-37.0
261+
-D ADVERT_LON=145.0
262+
-D ADMIN_PASSWORD="\"password\""
263+
-D ROOM_PASSWORD="\"hello\""
264+
; -D MESH_PACKET_LOGGING=1
265+
; -D MESH_DEBUG=1
266+
267+
[env:Heltec_WSL3_companion_radio_ble]
238268
extends = Heltec_lora32_v3
239269
build_flags =
240270
${Heltec_lora32_v3.build_flags}
241271
-D MAX_CONTACTS=100
242272
-D MAX_GROUP_CHANNELS=1
243-
-D DISPLAY_CLASS=SSD1306Display
244-
-D WIFI_DEBUG_LOGGING=1
245-
-D WIFI_SSID="\"myssid\""
246-
-D WIFI_PWD="\"mypwd\""
273+
-D BLE_PIN_CODE=123456
274+
-D BLE_DEBUG_LOGGING=1
247275
; -D ENABLE_PRIVATE_KEY_IMPORT=1
248276
; -D ENABLE_PRIVATE_KEY_EXPORT=1
249277
; -D MESH_PACKET_LOGGING=1
250278
; -D MESH_DEBUG=1
251279
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
252-
+<helpers/ui/*.cpp>
253280
+<helpers/esp32/*.cpp>
254281
+<../examples/companion_radio>
255282
lib_deps =
@@ -816,6 +843,20 @@ build_flags =
816843
; -D MESH_PACKET_LOGGING=1
817844
; -D MESH_DEBUG=1
818845

846+
[env:Heltec_t114_room_server]
847+
extends = Heltec_t114
848+
build_src_filter = ${Heltec_t114.build_src_filter}
849+
+<../examples/simple_room_server>
850+
build_flags =
851+
${Heltec_t114.build_flags}
852+
-D ADVERT_NAME="\"Heltec_T114 Room\""
853+
-D ADVERT_LAT=-37.0
854+
-D ADVERT_LON=145.0
855+
-D ADMIN_PASSWORD="\"password\""
856+
-D ROOM_PASSWORD="\"hello\""
857+
; -D MESH_PACKET_LOGGING=1
858+
; -D MESH_DEBUG=1
859+
819860
[env:Heltec_t114_companion_radio_ble]
820861
extends = Heltec_t114
821862
build_flags =
@@ -876,6 +917,18 @@ build_flags =
876917
; -D MESH_PACKET_LOGGING=1
877918
; -D MESH_DEBUG=1
878919

920+
[env:LilyGo_T-Echo_room_server]
921+
extends = LilyGo_Techo
922+
build_src_filter = ${LilyGo_Techo.build_src_filter} +<../examples/simple_room_server/main.cpp>
923+
build_flags =
924+
${LilyGo_Techo.build_flags}
925+
-D ADVERT_NAME="\"T-Echo Room\""
926+
-D ADVERT_LAT=-37.0
927+
-D ADVERT_LON=145.0
928+
-D ADMIN_PASSWORD="\"password\""
929+
; -D MESH_PACKET_LOGGING=1
930+
; -D MESH_DEBUG=1
931+
879932
[env:LilyGo_T-Echo_companion_radio_ble]
880933
extends = LilyGo_Techo
881934
build_flags =

0 commit comments

Comments
 (0)