platformio.ini 4.8 KB

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