Skip to content

Commit b777264

Browse files
Alex WoldenAlex Wolden
authored andcommitted
Remove duplicate entries from platformio.ini
- Remove unnecessary T3S3 configurations - Keep only the LilyGo T3 with SX1276 configurations - Clean up the platformio.ini file to remove duplication
1 parent e102279 commit b777264

File tree

1 file changed

+1
-166
lines changed

1 file changed

+1
-166
lines changed

platformio.ini

Lines changed: 1 addition & 166 deletions
Original file line numberDiff line numberDiff line change
@@ -343,104 +343,9 @@ build_flags =
343343
-D RADIO_CLASS=CustomSX1276
344344
-D WRAPPER_CLASS=CustomSX1276Wrapper
345345
-D LORA_TX_POWER=20
346-
347-
[LilyGo_T3S3_sx1276]
348-
extends = esp32_base
349-
board = t3_s3_v1_x ; ESP32-S3 specific board
350-
build_flags = ${esp32_base.build_flags}
351-
-D LILYGO_T3S3
352-
-D P_LORA_DIO_1=33 ; DIO1 interrupt pin
353-
-D P_LORA_DIO_0=34 ; DIO0 interrupt pin (replaces BUSY which is for SX126x)
354-
-D P_LORA_NSS=7 ; Chip select
355-
-D P_LORA_RESET=8 ; Reset pin
356-
-D P_LORA_SCLK=5 ; SPI clock
357-
-D P_LORA_MISO=3 ; SPI MISO
358-
-D P_LORA_MOSI=6 ; SPI MOSI
359-
-D P_LORA_TX_LED=37 ; TX LED
360-
-D PIN_VBAT_READ=1 ; Battery voltage reading
361-
-D RADIO_CLASS=CustomSX1276
362-
-D WRAPPER_CLASS=CustomSX1276Wrapper
363-
-D LORA_TX_POWER=20
364-
365-
[LilyGo_T3S3_sx1262]
366-
extends = esp32_base
367-
board = t3_s3_v1_x
368-
build_flags = ${esp32_base.build_flags}
369-
-D LILYGO_T3S3
370-
-D P_LORA_DIO_1=33
371-
-D P_LORA_NSS=7
372-
-D P_LORA_RESET=8 ; RADIOLIB_NC
373-
-D P_LORA_BUSY=34
374-
-D P_LORA_SCLK=5
375-
-D P_LORA_MISO=3
376-
-D P_LORA_MOSI=6
377-
-D P_LORA_TX_LED=37
378-
-D PIN_VBAT_READ=1
379-
-D SX126X_DIO2_AS_RF_SWITCH=true
380-
-D SX126X_DIO3_TCXO_VOLTAGE=1.8
381-
-D SX126X_CURRENT_LIMIT=130
382-
-D RADIO_CLASS=CustomSX1262
383-
-D WRAPPER_CLASS=CustomSX1262Wrapper
384-
-D LORA_TX_POWER=22
385-
386-
[env:LilyGo_T3S3_sx1262_Repeater]
387-
extends = LilyGo_T3S3_sx1262
388-
build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter} +<../examples/simple_repeater/main.cpp>
389-
build_flags =
390-
${LilyGo_T3S3_sx1262.build_flags}
391-
-D ADVERT_NAME="\"T3S3 Repeater\""
392-
-D ADVERT_LAT=-37.0
393-
-D ADVERT_LON=145.0
394-
-D ADMIN_PASSWORD="\"password\""
395-
; -D MESH_PACKET_LOGGING=1
396-
; -D MESH_DEBUG=1
397-
398-
[env:LilyGo_T3S3_sx1262_terminal_chat]
399-
extends = LilyGo_T3S3_sx1262
400-
build_flags =
401-
${LilyGo_T3S3_sx1262.build_flags}
402-
-D MAX_CONTACTS=100
403-
-D MAX_GROUP_CHANNELS=1
404-
; -D MESH_PACKET_LOGGING=1
405-
; -D MESH_DEBUG=1
406-
build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter} +<../examples/simple_secure_chat/main.cpp>
407-
lib_deps =
408-
${LilyGo_T3S3_sx1262.lib_deps}
409-
densaugeo/base64 @ ~1.4.0
410346

411-
[env:LilyGo_T3S3_sx1262_companion_radio_usb]
412-
extends = LilyGo_T3S3_sx1262
413-
build_flags =
414-
${LilyGo_T3S3_sx1262.build_flags}
415-
-D MAX_CONTACTS=100
416-
-D MAX_GROUP_CHANNELS=1
417-
; -D ENABLE_PRIVATE_KEY_IMPORT=1
418-
; -D ENABLE_PRIVATE_KEY_EXPORT=1
419-
; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
420-
; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
421-
build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter} +<../examples/companion_radio/main.cpp>
422-
lib_deps =
423-
${LilyGo_T3S3_sx1262.lib_deps}
424-
densaugeo/base64 @ ~1.4.0
425347

426-
[env:LilyGo_T3S3_sx1262_companion_radio_ble]
427-
extends = LilyGo_T3S3_sx1262
428-
build_flags =
429-
${LilyGo_T3S3_sx1262.build_flags}
430-
-D MAX_CONTACTS=100
431-
-D MAX_GROUP_CHANNELS=1
432-
-D BLE_PIN_CODE=123456
433-
-D BLE_DEBUG_LOGGING=1
434-
; -D ENABLE_PRIVATE_KEY_IMPORT=1
435-
; -D ENABLE_PRIVATE_KEY_EXPORT=1
436-
; -D MESH_PACKET_LOGGING=1
437-
; -D MESH_DEBUG=1
438-
build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter} +<helpers/esp32/*.cpp> +<../examples/companion_radio/main.cpp>
439-
lib_deps =
440-
${LilyGo_T3S3_sx1262.lib_deps}
441-
densaugeo/base64 @ ~1.4.0
442-
443-
; === LilyGo T3S3 with SX1276 environments ===
348+
; === LilyGo T3 with SX1276 environments ===
444349
[env:LilyGo_T3_sx1276_Repeater]
445350
extends = LilyGo_T3_sx1276
446351
build_src_filter = ${LilyGo_T3_sx1276.build_src_filter} +<../examples/simple_repeater/main.cpp>
@@ -453,18 +358,6 @@ build_flags =
453358
; -D MESH_PACKET_LOGGING=1
454359
; -D MESH_DEBUG=1
455360

456-
[env:LilyGo_T3S3_sx1276_Repeater]
457-
extends = LilyGo_T3S3_sx1276
458-
build_src_filter = ${LilyGo_T3S3_sx1276.build_src_filter} +<../examples/simple_repeater/main.cpp>
459-
build_flags =
460-
${LilyGo_T3S3_sx1276.build_flags}
461-
-D ADVERT_NAME="\"T3S3-1276 Repeater\""
462-
-D ADVERT_LAT=-37.0
463-
-D ADVERT_LON=145.0
464-
-D ADMIN_PASSWORD="\"password\""
465-
; -D MESH_PACKET_LOGGING=1
466-
; -D MESH_DEBUG=1
467-
468361
[env:LilyGo_T3_sx1276_terminal_chat]
469362
extends = LilyGo_T3_sx1276
470363
build_flags =
@@ -478,19 +371,6 @@ lib_deps =
478371
${LilyGo_T3_sx1276.lib_deps}
479372
densaugeo/base64 @ ~1.4.0
480373

481-
[env:LilyGo_T3S3_sx1276_terminal_chat]
482-
extends = LilyGo_T3S3_sx1276
483-
build_flags =
484-
${LilyGo_T3S3_sx1276.build_flags}
485-
-D MAX_CONTACTS=100
486-
-D MAX_GROUP_CHANNELS=1
487-
; -D MESH_PACKET_LOGGING=1
488-
; -D MESH_DEBUG=1
489-
build_src_filter = ${LilyGo_T3S3_sx1276.build_src_filter} +<../examples/simple_secure_chat/main.cpp>
490-
lib_deps =
491-
${LilyGo_T3S3_sx1276.lib_deps}
492-
densaugeo/base64 @ ~1.4.0
493-
494374
[env:LilyGo_T3_sx1276_companion_radio_usb]
495375
extends = LilyGo_T3_sx1276
496376
build_flags =
@@ -506,21 +386,6 @@ lib_deps =
506386
${LilyGo_T3_sx1276.lib_deps}
507387
densaugeo/base64 @ ~1.4.0
508388

509-
[env:LilyGo_T3S3_sx1276_companion_radio_usb]
510-
extends = LilyGo_T3S3_sx1276
511-
build_flags =
512-
${LilyGo_T3S3_sx1276.build_flags}
513-
-D MAX_CONTACTS=100
514-
-D MAX_GROUP_CHANNELS=1
515-
; -D ENABLE_PRIVATE_KEY_IMPORT=1
516-
; -D ENABLE_PRIVATE_KEY_EXPORT=1
517-
; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
518-
; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
519-
build_src_filter = ${LilyGo_T3S3_sx1276.build_src_filter} +<../examples/companion_radio/main.cpp>
520-
lib_deps =
521-
${LilyGo_T3S3_sx1276.lib_deps}
522-
densaugeo/base64 @ ~1.4.0
523-
524389
[env:LilyGo_T3_sx1276_companion_radio_ble]
525390
extends = LilyGo_T3_sx1276
526391
build_flags =
@@ -551,36 +416,6 @@ build_flags =
551416
; -D MESH_PACKET_LOGGING=1
552417
; -D MESH_DEBUG=1
553418

554-
[env:LilyGo_T3S3_sx1276_companion_radio_ble]
555-
extends = LilyGo_T3S3_sx1276
556-
build_flags =
557-
${LilyGo_T3S3_sx1276.build_flags}
558-
-D MAX_CONTACTS=100
559-
-D MAX_GROUP_CHANNELS=1
560-
-D BLE_PIN_CODE=123456
561-
-D BLE_DEBUG_LOGGING=1
562-
; -D ENABLE_PRIVATE_KEY_IMPORT=1
563-
; -D ENABLE_PRIVATE_KEY_EXPORT=1
564-
; -D MESH_PACKET_LOGGING=1
565-
; -D MESH_DEBUG=1
566-
build_src_filter = ${LilyGo_T3S3_sx1276.build_src_filter} +<helpers/esp32/*.cpp> +<../examples/companion_radio/main.cpp>
567-
lib_deps =
568-
${LilyGo_T3S3_sx1276.lib_deps}
569-
densaugeo/base64 @ ~1.4.0
570-
571-
[env:LilyGo_T3S3_sx1276_room_server]
572-
extends = LilyGo_T3S3_sx1276
573-
build_src_filter = ${LilyGo_T3S3_sx1276.build_src_filter} +<../examples/simple_room_server/main.cpp>
574-
build_flags =
575-
${LilyGo_T3S3_sx1276.build_flags}
576-
-D ADVERT_NAME="\"T3S3-1276 Room\""
577-
-D ADVERT_LAT=-37.0
578-
-D ADVERT_LON=145.0
579-
-D ADMIN_PASSWORD="\"password\""
580-
-D ROOM_PASSWORD="\"hello\""
581-
; -D MESH_PACKET_LOGGING=1
582-
; -D MESH_DEBUG=1
583-
584419
; ----------------- NRF52 ---------------------
585420
[nrf52_base]
586421
extends = arduino_base

0 commit comments

Comments
 (0)