platformio.ini 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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 USE_SX1262
  26. -D RADIO_CLASS=CustomSX1262
  27. -D WRAPPER_CLASS=CustomSX1262Wrapper
  28. -D LORA_TX_POWER=22
  29. -D SX126X_RX_BOOSTED_GAIN=1
  30. build_src_filter = ${esp32_base.build_src_filter}
  31. +<../variants/lilygo_t3s3>
  32. lib_deps =
  33. ${esp32_base.lib_deps}
  34. adafruit/Adafruit SSD1306 @ ^2.5.13
  35. ; === LilyGo T3S3 with SX1262 environments ===
  36. [env:LilyGo_T3S3_sx1262_repeater]
  37. extends = LilyGo_T3S3_sx1262
  38. build_flags =
  39. ${LilyGo_T3S3_sx1262.build_flags}
  40. -D DISPLAY_CLASS=SSD1306Display
  41. -D ADVERT_NAME='"T3S3-1262 Repeater"'
  42. -D ADVERT_LAT=0.0
  43. -D ADVERT_LON=0.0
  44. -D ADMIN_PASSWORD='"password"'
  45. -D MAX_NEIGHBOURS=50
  46. ; -D MESH_PACKET_LOGGING=1
  47. ; -D MESH_DEBUG=1
  48. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  49. +<helpers/ui/SSD1306Display.cpp>
  50. +<../examples/simple_repeater>
  51. lib_deps =
  52. ${LilyGo_T3S3_sx1262.lib_deps}
  53. ${esp32_ota.lib_deps}
  54. ; [env:LilyGo_T3S3_sx1262_repeater_bridge_rs232]
  55. ; extends = LilyGo_T3S3_sx1262
  56. ; build_flags =
  57. ; ${LilyGo_T3S3_sx1262.build_flags}
  58. ; -D DISPLAY_CLASS=SSD1306Display
  59. ; -D ADVERT_NAME='"RS232 Bridge"'
  60. ; -D ADVERT_LAT=0.0
  61. ; -D ADVERT_LON=0.0
  62. ; -D ADMIN_PASSWORD='"password"'
  63. ; -D MAX_NEIGHBOURS=50
  64. ; -D WITH_RS232_BRIDGE=Serial2
  65. ; -D WITH_RS232_BRIDGE_RX=5
  66. ; -D WITH_RS232_BRIDGE_TX=6
  67. ; -D BRIDGE_DEBUG=1
  68. ; ; -D MESH_PACKET_LOGGING=1
  69. ; ; -D MESH_DEBUG=1
  70. ; build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  71. ; +<helpers/bridges/RS232Bridge.cpp>
  72. ; +<helpers/ui/SSD1306Display.cpp>
  73. ; +<../examples/simple_repeater>
  74. ; lib_deps =
  75. ; ${LilyGo_T3S3_sx1262.lib_deps}
  76. ; ${esp32_ota.lib_deps}
  77. [env:LilyGo_T3S3_sx1262_repeater_bridge_espnow]
  78. extends = LilyGo_T3S3_sx1262
  79. build_flags =
  80. ${LilyGo_T3S3_sx1262.build_flags}
  81. -D DISPLAY_CLASS=SSD1306Display
  82. -D ADVERT_NAME='"ESPNow Bridge"'
  83. -D ADVERT_LAT=0.0
  84. -D ADVERT_LON=0.0
  85. -D ADMIN_PASSWORD='"password"'
  86. -D MAX_NEIGHBOURS=50
  87. -D WITH_ESPNOW_BRIDGE=1
  88. ; -D BRIDGE_DEBUG=1
  89. ; -D MESH_PACKET_LOGGING=1
  90. ; -D MESH_DEBUG=1
  91. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  92. +<helpers/bridges/ESPNowBridge.cpp>
  93. +<helpers/ui/SSD1306Display.cpp>
  94. +<../examples/simple_repeater>
  95. lib_deps =
  96. ${LilyGo_T3S3_sx1262.lib_deps}
  97. ${esp32_ota.lib_deps}
  98. [env:LilyGo_T3S3_sx1262_terminal_chat]
  99. extends = LilyGo_T3S3_sx1262
  100. build_flags =
  101. ${LilyGo_T3S3_sx1262.build_flags}
  102. -D MAX_CONTACTS=350
  103. -D MAX_GROUP_CHANNELS=1
  104. ; -D MESH_PACKET_LOGGING=1
  105. ; -D MESH_DEBUG=1
  106. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  107. +<../examples/simple_secure_chat/main.cpp>
  108. lib_deps =
  109. ${LilyGo_T3S3_sx1262.lib_deps}
  110. densaugeo/base64 @ ~1.4.0
  111. [env:LilyGo_T3S3_sx1262_room_server]
  112. extends = LilyGo_T3S3_sx1262
  113. build_flags =
  114. ${LilyGo_T3S3_sx1262.build_flags}
  115. -D DISPLAY_CLASS=SSD1306Display
  116. -D ADVERT_NAME='"T3S3-1262 Room"'
  117. -D ADVERT_LAT=0.0
  118. -D ADVERT_LON=0.0
  119. -D ADMIN_PASSWORD='"password"'
  120. -D ROOM_PASSWORD='"hello"'
  121. ; -D MESH_PACKET_LOGGING=1
  122. ; -D MESH_DEBUG=1
  123. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  124. +<helpers/ui/SSD1306Display.cpp>
  125. +<../examples/simple_room_server>
  126. lib_deps =
  127. ${LilyGo_T3S3_sx1262.lib_deps}
  128. ${esp32_ota.lib_deps}
  129. [env:LilyGo_T3S3_sx1262_companion_radio_usb]
  130. extends = LilyGo_T3S3_sx1262
  131. build_flags =
  132. ${LilyGo_T3S3_sx1262.build_flags}
  133. -I examples/companion_radio/ui-new
  134. -D DISPLAY_CLASS=SSD1306Display
  135. -D MAX_CONTACTS=350
  136. -D MAX_GROUP_CHANNELS=40
  137. ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
  138. ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
  139. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  140. +<helpers/ui/SSD1306Display.cpp>
  141. +<helpers/ui/MomentaryButton.cpp>
  142. +<../examples/companion_radio/*.cpp>
  143. +<../examples/companion_radio/ui-new/*.cpp>
  144. lib_deps =
  145. ${LilyGo_T3S3_sx1262.lib_deps}
  146. densaugeo/base64 @ ~1.4.0
  147. [env:LilyGo_T3S3_sx1262_companion_radio_ble]
  148. extends = LilyGo_T3S3_sx1262
  149. build_flags =
  150. ${LilyGo_T3S3_sx1262.build_flags}
  151. -I examples/companion_radio/ui-new
  152. -D DISPLAY_CLASS=SSD1306Display
  153. -D MAX_CONTACTS=350
  154. -D MAX_GROUP_CHANNELS=40
  155. -D BLE_PIN_CODE=123456
  156. -D BLE_DEBUG_LOGGING=1
  157. -D OFFLINE_QUEUE_SIZE=256
  158. ; -D MESH_PACKET_LOGGING=1
  159. ; -D MESH_DEBUG=1
  160. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  161. +<helpers/esp32/*.cpp>
  162. +<helpers/ui/SSD1306Display.cpp>
  163. +<helpers/ui/MomentaryButton.cpp>
  164. +<../examples/companion_radio/*.cpp>
  165. +<../examples/companion_radio/ui-new/*.cpp>
  166. lib_deps =
  167. ${LilyGo_T3S3_sx1262.lib_deps}
  168. densaugeo/base64 @ ~1.4.0
  169. [env:LilyGo_T3S3_sx1262_kiss_modem]
  170. extends = LilyGo_T3S3_sx1262
  171. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  172. +<../examples/kiss_modem/>