platformio.ini 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. [LilyGo_T3S3_sx1262]
  2. extends = esp32_base
  3. board = t3_s3_v1_x
  4. build_flags =
  5. ${esp32_base.build_flags}
  6. -I variants/lilygo_t3s3
  7. -D LILYGO_T3S3
  8. -D P_LORA_DIO_1=33
  9. -D P_LORA_NSS=7
  10. -D P_LORA_RESET=8 ; RADIOLIB_NC
  11. -D P_LORA_BUSY=34
  12. -D P_LORA_SCLK=5
  13. -D P_LORA_MISO=3
  14. -D P_LORA_MOSI=6
  15. -D P_LORA_TX_LED=37
  16. -D PIN_VBAT_READ=1
  17. -D PIN_USER_BTN=0
  18. -D PIN_BOARD_SDA=18
  19. -D PIN_BOARD_SCL=17
  20. -D P_LORA_TX_LED=37
  21. -D PIN_OLED_RESET=21
  22. -D SX126X_DIO2_AS_RF_SWITCH=true
  23. -D SX126X_DIO3_TCXO_VOLTAGE=1.8
  24. -D SX126X_CURRENT_LIMIT=140
  25. -D RADIO_CLASS=CustomSX1262
  26. -D WRAPPER_CLASS=CustomSX1262Wrapper
  27. -D LORA_TX_POWER=22
  28. -D SX126X_RX_BOOSTED_GAIN=1
  29. build_src_filter = ${esp32_base.build_src_filter}
  30. +<../variants/lilygo_t3s3>
  31. lib_deps =
  32. ${esp32_base.lib_deps}
  33. adafruit/Adafruit SSD1306 @ ^2.5.13
  34. ; === LilyGo T3S3 with SX1262 environments ===
  35. [env:LilyGo_T3S3_sx1262_Repeater]
  36. extends = LilyGo_T3S3_sx1262
  37. build_flags =
  38. ${LilyGo_T3S3_sx1262.build_flags}
  39. -D DISPLAY_CLASS=SSD1306Display
  40. -D ADVERT_NAME='"T3S3-1262 Repeater"'
  41. -D ADVERT_LAT=0.0
  42. -D ADVERT_LON=0.0
  43. -D ADMIN_PASSWORD='"password"'
  44. -D MAX_NEIGHBOURS=8
  45. ; -D MESH_PACKET_LOGGING=1
  46. ; -D MESH_DEBUG=1
  47. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  48. +<helpers/ui/SSD1306Display.cpp>
  49. +<../examples/simple_repeater>
  50. lib_deps =
  51. ${LilyGo_T3S3_sx1262.lib_deps}
  52. ${esp32_ota.lib_deps}
  53. [env:LilyGo_T3S3_sx1262_terminal_chat]
  54. extends = LilyGo_T3S3_sx1262
  55. build_flags =
  56. ${LilyGo_T3S3_sx1262.build_flags}
  57. -D MAX_CONTACTS=100
  58. -D MAX_GROUP_CHANNELS=1
  59. ; -D MESH_PACKET_LOGGING=1
  60. ; -D MESH_DEBUG=1
  61. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  62. +<../examples/simple_secure_chat/main.cpp>
  63. lib_deps =
  64. ${LilyGo_T3S3_sx1262.lib_deps}
  65. densaugeo/base64 @ ~1.4.0
  66. [env:LilyGo_T3S3_sx1262_room_server]
  67. extends = LilyGo_T3S3_sx1262
  68. build_flags =
  69. ${LilyGo_T3S3_sx1262.build_flags}
  70. -D DISPLAY_CLASS=SSD1306Display
  71. -D ADVERT_NAME='"T3S3-1262 Room"'
  72. -D ADVERT_LAT=0.0
  73. -D ADVERT_LON=0.0
  74. -D ADMIN_PASSWORD='"password"'
  75. -D ROOM_PASSWORD='"hello"'
  76. ; -D MESH_PACKET_LOGGING=1
  77. ; -D MESH_DEBUG=1
  78. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  79. +<helpers/ui/SSD1306Display.cpp>
  80. +<../examples/simple_room_server>
  81. lib_deps =
  82. ${LilyGo_T3S3_sx1262.lib_deps}
  83. ${esp32_ota.lib_deps}
  84. [env:LilyGo_T3S3_sx1262_companion_radio_usb]
  85. extends = LilyGo_T3S3_sx1262
  86. build_flags =
  87. ${LilyGo_T3S3_sx1262.build_flags}
  88. -D DISPLAY_CLASS=SSD1306Display
  89. -D MAX_CONTACTS=100
  90. -D MAX_GROUP_CHANNELS=8
  91. ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
  92. ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
  93. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  94. +<helpers/ui/SSD1306Display.cpp>
  95. +<../examples/companion_radio>
  96. lib_deps =
  97. ${LilyGo_T3S3_sx1262.lib_deps}
  98. densaugeo/base64 @ ~1.4.0
  99. [env:LilyGo_T3S3_sx1262_companion_radio_ble]
  100. extends = LilyGo_T3S3_sx1262
  101. build_flags =
  102. ${LilyGo_T3S3_sx1262.build_flags}
  103. -D DISPLAY_CLASS=SSD1306Display
  104. -D MAX_CONTACTS=100
  105. -D MAX_GROUP_CHANNELS=8
  106. -D BLE_PIN_CODE=123456
  107. -D BLE_DEBUG_LOGGING=1
  108. -D OFFLINE_QUEUE_SIZE=256
  109. ; -D MESH_PACKET_LOGGING=1
  110. ; -D MESH_DEBUG=1
  111. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  112. +<helpers/esp32/*.cpp>
  113. +<helpers/ui/SSD1306Display.cpp>
  114. +<../examples/companion_radio>
  115. lib_deps =
  116. ${LilyGo_T3S3_sx1262.lib_deps}
  117. densaugeo/base64 @ ~1.4.0