platformio.ini 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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_Repeater_bridge_rs232]
  54. ; extends = LilyGo_T3S3_sx1262
  55. ; build_flags =
  56. ; ${LilyGo_T3S3_sx1262.build_flags}
  57. ; -D DISPLAY_CLASS=SSD1306Display
  58. ; -D ADVERT_NAME='"RS232 Bridge"'
  59. ; -D ADVERT_LAT=0.0
  60. ; -D ADVERT_LON=0.0
  61. ; -D ADMIN_PASSWORD='"password"'
  62. ; -D MAX_NEIGHBOURS=8
  63. ; -D WITH_RS232_BRIDGE=Serial2
  64. ; -D WITH_RS232_BRIDGE_RX=5
  65. ; -D WITH_RS232_BRIDGE_TX=6
  66. ; ; -D MESH_PACKET_LOGGING=1
  67. ; ; -D MESH_DEBUG=1
  68. ; build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  69. ; +<helpers/bridges/RS232Bridge.cpp>
  70. ; +<helpers/ui/SSD1306Display.cpp>
  71. ; +<../examples/simple_repeater>
  72. ; lib_deps =
  73. ; ${LilyGo_T3S3_sx1262.lib_deps}
  74. ; ${esp32_ota.lib_deps}
  75. [env:LilyGo_T3S3_sx1262_Repeater_bridge_espnow]
  76. extends = LilyGo_T3S3_sx1262
  77. build_flags =
  78. ${LilyGo_T3S3_sx1262.build_flags}
  79. -D DISPLAY_CLASS=SSD1306Display
  80. -D ADVERT_NAME='"ESPNow Bridge"'
  81. -D ADVERT_LAT=0.0
  82. -D ADVERT_LON=0.0
  83. -D ADMIN_PASSWORD='"password"'
  84. -D MAX_NEIGHBOURS=8
  85. -D WITH_ESPNOW_BRIDGE=1
  86. -D WITH_ESPNOW_BRIDGE_SECRET='"shared-secret"'
  87. ; -D MESH_PACKET_LOGGING=1
  88. ; -D MESH_DEBUG=1
  89. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  90. +<helpers/bridges/ESPNowBridge.cpp>
  91. +<helpers/ui/SSD1306Display.cpp>
  92. +<../examples/simple_repeater>
  93. lib_deps =
  94. ${LilyGo_T3S3_sx1262.lib_deps}
  95. ${esp32_ota.lib_deps}
  96. [env:LilyGo_T3S3_sx1262_terminal_chat]
  97. extends = LilyGo_T3S3_sx1262
  98. build_flags =
  99. ${LilyGo_T3S3_sx1262.build_flags}
  100. -D MAX_CONTACTS=300
  101. -D MAX_GROUP_CHANNELS=1
  102. ; -D MESH_PACKET_LOGGING=1
  103. ; -D MESH_DEBUG=1
  104. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  105. +<../examples/simple_secure_chat/main.cpp>
  106. lib_deps =
  107. ${LilyGo_T3S3_sx1262.lib_deps}
  108. densaugeo/base64 @ ~1.4.0
  109. [env:LilyGo_T3S3_sx1262_room_server]
  110. extends = LilyGo_T3S3_sx1262
  111. build_flags =
  112. ${LilyGo_T3S3_sx1262.build_flags}
  113. -D DISPLAY_CLASS=SSD1306Display
  114. -D ADVERT_NAME='"T3S3-1262 Room"'
  115. -D ADVERT_LAT=0.0
  116. -D ADVERT_LON=0.0
  117. -D ADMIN_PASSWORD='"password"'
  118. -D ROOM_PASSWORD='"hello"'
  119. ; -D MESH_PACKET_LOGGING=1
  120. ; -D MESH_DEBUG=1
  121. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  122. +<helpers/ui/SSD1306Display.cpp>
  123. +<../examples/simple_room_server>
  124. lib_deps =
  125. ${LilyGo_T3S3_sx1262.lib_deps}
  126. ${esp32_ota.lib_deps}
  127. [env:LilyGo_T3S3_sx1262_companion_radio_usb]
  128. extends = LilyGo_T3S3_sx1262
  129. build_flags =
  130. ${LilyGo_T3S3_sx1262.build_flags}
  131. -I examples/companion_radio/ui-new
  132. -D DISPLAY_CLASS=SSD1306Display
  133. -D MAX_CONTACTS=300
  134. -D MAX_GROUP_CHANNELS=8
  135. ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
  136. ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
  137. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  138. +<helpers/ui/SSD1306Display.cpp>
  139. +<helpers/ui/MomentaryButton.cpp>
  140. +<../examples/companion_radio/*.cpp>
  141. +<../examples/companion_radio/ui-new/*.cpp>
  142. lib_deps =
  143. ${LilyGo_T3S3_sx1262.lib_deps}
  144. densaugeo/base64 @ ~1.4.0
  145. [env:LilyGo_T3S3_sx1262_companion_radio_ble]
  146. extends = LilyGo_T3S3_sx1262
  147. build_flags =
  148. ${LilyGo_T3S3_sx1262.build_flags}
  149. -I examples/companion_radio/ui-new
  150. -D DISPLAY_CLASS=SSD1306Display
  151. -D MAX_CONTACTS=300
  152. -D MAX_GROUP_CHANNELS=8
  153. -D BLE_PIN_CODE=123456
  154. -D BLE_DEBUG_LOGGING=1
  155. -D OFFLINE_QUEUE_SIZE=256
  156. ; -D MESH_PACKET_LOGGING=1
  157. ; -D MESH_DEBUG=1
  158. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  159. +<helpers/esp32/*.cpp>
  160. +<helpers/ui/SSD1306Display.cpp>
  161. +<helpers/ui/MomentaryButton.cpp>
  162. +<../examples/companion_radio/*.cpp>
  163. +<../examples/companion_radio/ui-new/*.cpp>
  164. lib_deps =
  165. ${LilyGo_T3S3_sx1262.lib_deps}
  166. densaugeo/base64 @ ~1.4.0