Skip to content

Commit 1f25575

Browse files
Alex WoldenAlex Wolden
authored andcommitted
readded 1262 radio
1 parent b777264 commit 1f25575

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

platformio.ini

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,28 @@ build_flags =
344344
-D WRAPPER_CLASS=CustomSX1276Wrapper
345345
-D LORA_TX_POWER=20
346346

347+
; =============
348+
[LilyGo_T3S3_sx1262]
349+
extends = esp32_base
350+
board = t3_s3_v1_x
351+
build_flags = ${esp32_base.build_flags}
352+
-D LILYGO_T3S3
353+
-D P_LORA_DIO_1=33
354+
-D P_LORA_NSS=7
355+
-D P_LORA_RESET=8 ; RADIOLIB_NC
356+
-D P_LORA_BUSY=34
357+
-D P_LORA_SCLK=5
358+
-D P_LORA_MISO=3
359+
-D P_LORA_MOSI=6
360+
-D P_LORA_TX_LED=37
361+
-D PIN_VBAT_READ=1
362+
-D SX126X_DIO2_AS_RF_SWITCH=true
363+
-D SX126X_DIO3_TCXO_VOLTAGE=1.8
364+
-D SX126X_CURRENT_LIMIT=130
365+
-D RADIO_CLASS=CustomSX1262
366+
-D WRAPPER_CLASS=CustomSX1262Wrapper
367+
-D LORA_TX_POWER=22
368+
347369

348370
; === LilyGo T3 with SX1276 environments ===
349371
[env:LilyGo_T3_sx1276_Repeater]
@@ -416,6 +438,65 @@ build_flags =
416438
; -D MESH_PACKET_LOGGING=1
417439
; -D MESH_DEBUG=1
418440

441+
; === LilyGo T3S3 with SX1262 environments ===
442+
[env:LilyGo_T3S3_sx1262_Repeater]
443+
extends = LilyGo_T3S3_sx1262
444+
build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter} +<../examples/simple_repeater/main.cpp>
445+
build_flags =
446+
${LilyGo_T3S3_sx1262.build_flags}
447+
-D ADVERT_NAME="\"T3S3-1262 Repeater\""
448+
-D ADVERT_LAT=-37.0
449+
-D ADVERT_LON=145.0
450+
-D ADMIN_PASSWORD="\"password\""
451+
; -D MESH_PACKET_LOGGING=1
452+
; -D MESH_DEBUG=1
453+
454+
[env:LilyGo_T3S3_sx1262_terminal_chat]
455+
extends = LilyGo_T3S3_sx1262
456+
build_flags =
457+
${LilyGo_T3S3_sx1262.build_flags}
458+
-D MAX_CONTACTS=100
459+
-D MAX_GROUP_CHANNELS=1
460+
; -D MESH_PACKET_LOGGING=1
461+
; -D MESH_DEBUG=1
462+
build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter} +<../examples/simple_secure_chat/main.cpp>
463+
lib_deps =
464+
${LilyGo_T3S3_sx1262.lib_deps}
465+
densaugeo/base64 @ ~1.4.0
466+
467+
[env:LilyGo_T3S3_sx1262_companion_radio_usb]
468+
extends = LilyGo_T3S3_sx1262
469+
build_flags =
470+
${LilyGo_T3S3_sx1262.build_flags}
471+
-D MAX_CONTACTS=100
472+
-D MAX_GROUP_CHANNELS=1
473+
; -D ENABLE_PRIVATE_KEY_IMPORT=1
474+
; -D ENABLE_PRIVATE_KEY_EXPORT=1
475+
; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
476+
; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
477+
build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter} +<../examples/companion_radio/main.cpp>
478+
lib_deps =
479+
${LilyGo_T3S3_sx1262.lib_deps}
480+
densaugeo/base64 @ ~1.4.0
481+
482+
[env:LilyGo_T3S3_sx1262_companion_radio_ble]
483+
extends = LilyGo_T3S3_sx1262
484+
build_flags =
485+
${LilyGo_T3S3_sx1262.build_flags}
486+
-D MAX_CONTACTS=100
487+
-D MAX_GROUP_CHANNELS=1
488+
-D BLE_PIN_CODE=123456
489+
-D BLE_DEBUG_LOGGING=1
490+
; -D ENABLE_PRIVATE_KEY_IMPORT=1
491+
; -D ENABLE_PRIVATE_KEY_EXPORT=1
492+
; -D MESH_PACKET_LOGGING=1
493+
; -D MESH_DEBUG=1
494+
build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter} +<helpers/esp32/*.cpp> +<../examples/companion_radio/main.cpp>
495+
lib_deps =
496+
${LilyGo_T3S3_sx1262.lib_deps}
497+
densaugeo/base64 @ ~1.4.0
498+
499+
419500
; ----------------- NRF52 ---------------------
420501
[nrf52_base]
421502
extends = arduino_base

0 commit comments

Comments
 (0)