Skip to content

Commit 3505d12

Browse files
TheRealHaoLiuclaude
andcommitted
Add repeater and room server environments for M5Stack Unit C6L
- Rename companion_radio_ble env to follow naming conventions - Add m5stack_unit_c6l_repeater with packet logging - Add m5stack_unit_c6l_room_server with packet logging - All environments use matching LoRa settings (910.525MHz, SF7, BW62.5) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent fb7af57 commit 3505d12

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

variants/m5stack_unit_c6l/platformio.ini

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ build_flags =
3737
build_src_filter = ${esp32c6_base.build_src_filter}
3838
+<../variants/m5stack_unit_c6l>
3939

40-
[env:M5Stack_Unit_C6L_companion_radio_ble_]
40+
[env:m5stack_unit_c6l_companion_radio_ble]
4141
extends = m5stack_unit_c6l
4242
build_flags = ${m5stack_unit_c6l.build_flags}
4343
; US/Canada recommended preset (narrow mode)
@@ -72,3 +72,44 @@ lib_deps =
7272
densaugeo/base64 @ ~1.4.0
7373
end2endzone/NonBlockingRTTTL@^1.3.0
7474
adafruit/Adafruit SSD1306 @ ^2.5.13
75+
76+
[env:m5stack_unit_c6l_repeater]
77+
extends = m5stack_unit_c6l
78+
build_flags = ${m5stack_unit_c6l.build_flags}
79+
; LoRa settings - must match other devices on your mesh
80+
-D LORA_FREQ=910.525
81+
-D LORA_SF=7
82+
-D LORA_BW=62.5
83+
-D LORA_CR=5
84+
-D ADVERT_NAME='"M5Stack C6L Repeater"'
85+
-D ADVERT_LAT=0.0
86+
-D ADVERT_LON=0.0
87+
-D ADMIN_PASSWORD='"password"'
88+
-D MAX_NEIGHBOURS=50
89+
-D MESH_PACKET_LOGGING=1
90+
build_src_filter = ${m5stack_unit_c6l.build_src_filter}
91+
-<../variants/m5stack_unit_c6l/UITask.cpp>
92+
+<../examples/simple_repeater>
93+
lib_deps =
94+
${m5stack_unit_c6l.lib_deps}
95+
bakercp/CRC32 @ ^2.0.0
96+
97+
[env:m5stack_unit_c6l_room_server]
98+
extends = m5stack_unit_c6l
99+
build_flags = ${m5stack_unit_c6l.build_flags}
100+
; LoRa settings - must match other devices on your mesh
101+
-D LORA_FREQ=910.525
102+
-D LORA_SF=7
103+
-D LORA_BW=62.5
104+
-D LORA_CR=5
105+
-D ADVERT_NAME='"M5Stack C6L Room"'
106+
-D ADVERT_LAT=0.0
107+
-D ADVERT_LON=0.0
108+
-D ADMIN_PASSWORD='"password"'
109+
-D ROOM_PASSWORD='"hello"'
110+
-D MESH_PACKET_LOGGING=1
111+
build_src_filter = ${m5stack_unit_c6l.build_src_filter}
112+
-<../variants/m5stack_unit_c6l/UITask.cpp>
113+
+<../examples/simple_room_server>
114+
lib_deps =
115+
${m5stack_unit_c6l.lib_deps}

0 commit comments

Comments
 (0)