mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
add why2025 badge as a target
This commit is contained in:
parent
0959e64d11
commit
6536e9931d
1 changed files with 62 additions and 0 deletions
|
|
@ -121,3 +121,65 @@ build_src_filter = ${Meshimi.build_src_filter}
|
|||
lib_deps =
|
||||
${Meshimi.lib_deps}
|
||||
densaugeo/base64 @ ~1.4.0
|
||||
|
||||
; WHY2025 badge variant
|
||||
; 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
|
||||
; also requires wiping the esp32-P4
|
||||
[WHY2025_badge]
|
||||
extends = Xiao_C6
|
||||
board_build.partitions = default_8MB.csv
|
||||
board_upload.flash_size = 8MB
|
||||
board_upload.maximum_size = 8388608
|
||||
build_flags =
|
||||
${Xiao_C6.build_flags}
|
||||
-D P_LORA_SCLK=6
|
||||
-D P_LORA_MISO=2
|
||||
-D P_LORA_MOSI=7
|
||||
-D P_LORA_NSS=4
|
||||
-D P_LORA_DIO_1=5
|
||||
-D P_LORA_BUSY=11
|
||||
-D P_LORA_RESET=1
|
||||
-D SX126X_TXEN=3
|
||||
-UPIN_BOARD_SDA
|
||||
-UPIN_BOARD_SCL
|
||||
-UP_LORA_TX_LED
|
||||
-USX126X_RXEN
|
||||
-USX126X_DIO2_AS_RF_SWITCH
|
||||
-USX126X_DIO3_TCXO_VOLTAGE
|
||||
|
||||
[env:WHY2025_badge_Repeater]
|
||||
extends = WHY2025_badge
|
||||
build_src_filter = ${WHY2025_badge.build_src_filter}
|
||||
+<../examples/simple_repeater/main.cpp>
|
||||
build_flags =
|
||||
${WHY2025_badge.build_flags}
|
||||
-D ADVERT_NAME='"WHY2025 Badge Repeater"'
|
||||
-D ADVERT_LAT=0.0
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=8
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
; -D MESH_DEBUG=1
|
||||
lib_deps =
|
||||
${WHY2025_badge.lib_deps}
|
||||
; ${esp32_ota.lib_deps}
|
||||
|
||||
[env:WHY2025_badge_companion_radio_ble]
|
||||
extends = WHY2025_badge
|
||||
build_flags = ${WHY2025_badge.build_flags}
|
||||
-D MAX_CONTACTS=100
|
||||
-D MAX_GROUP_CHANNELS=8
|
||||
-D BLE_PIN_CODE=123456
|
||||
-D BLE_DEBUG_LOGGING=1
|
||||
-D OFFLINE_QUEUE_SIZE=256
|
||||
-D ENABLE_PRIVATE_KEY_IMPORT=1
|
||||
-D ENABLE_PRIVATE_KEY_EXPORT=1
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
; -D MESH_DEBUG=1
|
||||
build_src_filter = ${WHY2025_badge.build_src_filter}
|
||||
+<helpers/esp32/*.cpp>
|
||||
-<helpers/esp32/ESPNOWRadio.cpp>
|
||||
+<../examples/companion_radio/*.cpp>
|
||||
lib_deps =
|
||||
${WHY2025_badge.lib_deps}
|
||||
densaugeo/base64 @ ~1.4.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue