Skip to content

Commit 3f5c772

Browse files
authored
Merge pull request #671 from aveao/why2025-badge-pr
Add WHY2025 badge as a variant
2 parents 2d6e714 + 6536e99 commit 3f5c772

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

variants/xiao_c6/platformio.ini

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,65 @@ build_src_filter = ${Meshimi.build_src_filter}
121121
lib_deps =
122122
${Meshimi.lib_deps}
123123
densaugeo/base64 @ ~1.4.0
124+
125+
; WHY2025 badge variant
126+
; requires soldering 2 pins between the esp32-C6 and the lora chip as shown here: https://wiki.why2025.org/Project:Meshtastic_on_the_WHY2025_badge
127+
; also requires wiping the esp32-P4
128+
[WHY2025_badge]
129+
extends = Xiao_C6
130+
board_build.partitions = default_8MB.csv
131+
board_upload.flash_size = 8MB
132+
board_upload.maximum_size = 8388608
133+
build_flags =
134+
${Xiao_C6.build_flags}
135+
-D P_LORA_SCLK=6
136+
-D P_LORA_MISO=2
137+
-D P_LORA_MOSI=7
138+
-D P_LORA_NSS=4
139+
-D P_LORA_DIO_1=5
140+
-D P_LORA_BUSY=11
141+
-D P_LORA_RESET=1
142+
-D SX126X_TXEN=3
143+
-UPIN_BOARD_SDA
144+
-UPIN_BOARD_SCL
145+
-UP_LORA_TX_LED
146+
-USX126X_RXEN
147+
-USX126X_DIO2_AS_RF_SWITCH
148+
-USX126X_DIO3_TCXO_VOLTAGE
149+
150+
[env:WHY2025_badge_Repeater]
151+
extends = WHY2025_badge
152+
build_src_filter = ${WHY2025_badge.build_src_filter}
153+
+<../examples/simple_repeater/main.cpp>
154+
build_flags =
155+
${WHY2025_badge.build_flags}
156+
-D ADVERT_NAME='"WHY2025 Badge Repeater"'
157+
-D ADVERT_LAT=0.0
158+
-D ADVERT_LON=0.0
159+
-D ADMIN_PASSWORD='"password"'
160+
-D MAX_NEIGHBOURS=8
161+
; -D MESH_PACKET_LOGGING=1
162+
; -D MESH_DEBUG=1
163+
lib_deps =
164+
${WHY2025_badge.lib_deps}
165+
; ${esp32_ota.lib_deps}
166+
167+
[env:WHY2025_badge_companion_radio_ble]
168+
extends = WHY2025_badge
169+
build_flags = ${WHY2025_badge.build_flags}
170+
-D MAX_CONTACTS=100
171+
-D MAX_GROUP_CHANNELS=8
172+
-D BLE_PIN_CODE=123456
173+
-D BLE_DEBUG_LOGGING=1
174+
-D OFFLINE_QUEUE_SIZE=256
175+
-D ENABLE_PRIVATE_KEY_IMPORT=1
176+
-D ENABLE_PRIVATE_KEY_EXPORT=1
177+
; -D MESH_PACKET_LOGGING=1
178+
; -D MESH_DEBUG=1
179+
build_src_filter = ${WHY2025_badge.build_src_filter}
180+
+<helpers/esp32/*.cpp>
181+
-<helpers/esp32/ESPNOWRadio.cpp>
182+
+<../examples/companion_radio/*.cpp>
183+
lib_deps =
184+
${WHY2025_badge.lib_deps}
185+
densaugeo/base64 @ ~1.4.0

0 commit comments

Comments
 (0)