mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-03-30 17:05:52 +00:00
Add Meshimi configuration and environment setups in platformio.ini
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -9,3 +9,5 @@ out/
|
||||
.DS_Store
|
||||
.vscode/settings.json
|
||||
.vscode/extensions.json
|
||||
.idea
|
||||
cmake-*
|
||||
@@ -65,3 +65,57 @@ build_src_filter = ${Xiao_C6.build_src_filter}
|
||||
lib_deps =
|
||||
${Xiao_C6.lib_deps}
|
||||
densaugeo/base64 @ ~1.4.0
|
||||
|
||||
; Meshimi variant
|
||||
[Meshimi]
|
||||
extends = Xiao_C6
|
||||
board_build.partitions = max_app_4MB.csv
|
||||
build_flags =
|
||||
${Xiao_C6.build_flags}
|
||||
-D P_LORA_TX_LED=15
|
||||
-D P_LORA_SCLK=19
|
||||
-D P_LORA_MISO=20
|
||||
-D P_LORA_MOSI=18
|
||||
-D P_LORA_NSS=21
|
||||
-D P_LORA_DIO_1=7
|
||||
-D P_LORA_BUSY=6
|
||||
-D P_LORA_RESET=2
|
||||
-D PIN_BOARD_SDA=22
|
||||
-D PIN_BOARD_SCL=23
|
||||
-D SX126X_RXEN=4
|
||||
-D SX126X_DIO2_AS_RF_SWITCH=true
|
||||
-D SX126X_DIO3_TCXO_VOLTAGE=1.8
|
||||
-D SX126X_CURRENT_LIMIT=140
|
||||
-D SX126X_RX_BOOSTED_GAIN=1
|
||||
|
||||
[env:Meshimi_Repeater]
|
||||
extends = Meshimi
|
||||
build_src_filter = ${Meshimi.build_src_filter}
|
||||
+<../examples/simple_repeater/main.cpp>
|
||||
build_flags =
|
||||
${Meshimi.build_flags}
|
||||
-D ADVERT_NAME='"Meshimi Repeater"'
|
||||
-D ADVERT_LAT=0.0
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=8
|
||||
lib_deps =
|
||||
${Meshimi.lib_deps}
|
||||
|
||||
[env:Meshimi_companion_radio_ble]
|
||||
extends = Meshimi
|
||||
build_flags = ${Meshimi.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
|
||||
build_src_filter = ${Meshimi.build_src_filter}
|
||||
+<helpers/esp32/*.cpp>
|
||||
-<helpers/esp32/ESPNOWRadio.cpp>
|
||||
+<../examples/companion_radio>
|
||||
lib_deps =
|
||||
${Meshimi.lib_deps}
|
||||
densaugeo/base64 @ ~1.4.0
|
||||
|
||||
Reference in New Issue
Block a user