Skip to content

Commit 3537494

Browse files
authored
Merge pull request #501 from fdlamotte/xiao_c3--small-fixups
xiao_c3: small fixups
2 parents 02645be + d30412b commit 3537494

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

variants/xiao_c3/platformio.ini

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ build_flags =
55
${esp32_base.build_flags}
66
-I variants/xiao_c3
77
-D ESP32_CPU_FREQ=80
8-
; -D LORA_TX_BOOST_PIN=D3
9-
; -D P_LORA_TX_LED=D5
108
-D PIN_VBAT_READ=D0
119
-D P_LORA_DIO_1=D1
1210
-D P_LORA_NSS=D4
13-
-D P_LORA_RESET=RADIOLIB_NC
11+
-D P_LORA_RESET=D2
1412
-D P_LORA_BUSY=D3
1513
-D PIN_BOARD_SDA=D6
1614
-D PIN_BOARD_SCL=D7
15+
-D SX126X_RXEN=D5
1716
-D SX126X_DIO2_AS_RF_SWITCH=true
1817
-D SX126X_DIO3_TCXO_VOLTAGE=1.8
1918
-D SX126X_CURRENT_LIMIT=140
@@ -52,7 +51,7 @@ build_flags =
5251
-D WRAPPER_CLASS=CustomSX1262Wrapper
5352
-D SX126X_RX_BOOSTED_GAIN=1
5453
-D LORA_TX_POWER=22
55-
-D ADVERT_NAME='"Xiao Repeater"'
54+
-D ADVERT_NAME='"Xiao C3 Repeater"'
5655
-D ADVERT_LAT=0.0
5756
-D ADVERT_LON=0.0
5857
-D ADMIN_PASSWORD='"password"'
@@ -63,27 +62,30 @@ lib_deps =
6362
${Xiao_esp32_C3.lib_deps}
6463
${esp32_ota.lib_deps}
6564

66-
[env:Xiao_C3_Repeater_sx1268]
65+
[env:Xiao_C3_companion_radio_ble]
6766
extends = Xiao_esp32_C3
6867
build_src_filter = ${Xiao_esp32_C3.build_src_filter}
69-
+<../examples/simple_repeater/main.cpp>
68+
+<../examples/companion_radio>
69+
+<helpers/esp32/*.cpp>
7070
build_flags =
7171
${Xiao_esp32_C3.build_flags}
72-
-D RADIO_CLASS=CustomSX1268
73-
-D WRAPPER_CLASS=CustomSX1268Wrapper
72+
-D RADIO_CLASS=CustomSX1262
73+
-D WRAPPER_CLASS=CustomSX1262Wrapper
74+
-D SX126X_RX_BOOSTED_GAIN=1
7475
-D LORA_TX_POWER=22
75-
-D ADVERT_NAME='"Xiao Repeater"'
76-
-D ADVERT_LAT=0.0
77-
-D ADVERT_LON=0.0
78-
-D ADMIN_PASSWORD='"password"'
79-
-D MAX_NEIGHBOURS=8
80-
; -D MESH_PACKET_LOGGING=1
81-
; -D MESH_DEBUG=1
76+
-D MAX_CONTACTS=100
77+
-D MAX_GROUP_CHANNELS=8
78+
-D BLE_PIN_CODE=123456
79+
-D OFFLINE_QUEUE_SIZE=256
80+
; -D BLE_DEBUG_LOGGING=1
81+
; -D MESH_PACKET_LOGGING=1
82+
; -D MESH_DEBUG=1
8283
lib_deps =
8384
${Xiao_esp32_C3.lib_deps}
8485
${esp32_ota.lib_deps}
86+
densaugeo/base64 @ ~1.4.0
8587

86-
[env:Xiao_C3_sx1262_companion_radio_ble]
88+
[env:Xiao_C3_companion_radio_usb]
8789
extends = Xiao_esp32_C3
8890
build_src_filter = ${Xiao_esp32_C3.build_src_filter}
8991
+<../examples/companion_radio>
@@ -96,7 +98,6 @@ build_flags =
9698
-D LORA_TX_POWER=22
9799
-D MAX_CONTACTS=100
98100
-D MAX_GROUP_CHANNELS=8
99-
-D BLE_PIN_CODE=123456
100101
-D OFFLINE_QUEUE_SIZE=256
101102
; -D BLE_DEBUG_LOGGING=1
102103
; -D MESH_PACKET_LOGGING=1

0 commit comments

Comments
 (0)