platformio.ini 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. [LilyGo_T3S3_sx1276]
  2. extends = esp32_base
  3. board = t3_s3_v1_x
  4. build_flags =
  5. ${esp32_base.build_flags}
  6. -I variants/lilygo_t3s3_sx1276
  7. -D LILYGO_T3S3
  8. -D P_LORA_DIO_0=9
  9. -D P_LORA_DIO_1=33
  10. -D P_LORA_NSS=7
  11. -D P_LORA_RESET=8
  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 PIN_OLED_RESET=21
  21. -D RADIO_CLASS=CustomSX1276
  22. -D WRAPPER_CLASS=CustomSX1276Wrapper
  23. -D SX127X_CURRENT_LIMIT=120
  24. -D SX176X_RXEN=21
  25. -D SX176X_TXEN=10
  26. -D LORA_TX_POWER=20
  27. build_src_filter = ${esp32_base.build_src_filter}
  28. +<../variants/lilygo_t3s3_sx1276>
  29. lib_deps =
  30. ${esp32_base.lib_deps}
  31. adafruit/Adafruit SSD1306 @ ^2.5.13
  32. ; === LilyGo T3S3 with SX1276 environments ===
  33. [env:LilyGo_T3S3_sx1276_repeater]
  34. extends = LilyGo_T3S3_sx1276
  35. build_flags =
  36. ${LilyGo_T3S3_sx1276.build_flags}
  37. -D DISPLAY_CLASS=SSD1306Display
  38. -D ADVERT_NAME='"T3S3-1276 Repeater"'
  39. -D ADVERT_LAT=0.0
  40. -D ADVERT_LON=0.0
  41. -D ADMIN_PASSWORD='"password"'
  42. -D MAX_NEIGHBOURS=50
  43. ; -D MESH_PACKET_LOGGING=1
  44. ; -D MESH_DEBUG=1
  45. build_src_filter = ${LilyGo_T3S3_sx1276.build_src_filter}
  46. +<helpers/ui/SSD1306Display.cpp>
  47. +<../examples/simple_repeater>
  48. lib_deps =
  49. ${LilyGo_T3S3_sx1276.lib_deps}
  50. ${esp32_ota.lib_deps}
  51. ; [env:LilyGo_T3S3_sx1276_repeater_bridge_rs232]
  52. ; extends = LilyGo_T3S3_sx1276
  53. ; build_flags =
  54. ; ${LilyGo_T3S3_sx1276.build_flags}
  55. ; -D DISPLAY_CLASS=SSD1306Display
  56. ; -D ADVERT_NAME='"RS232 Bridge"'
  57. ; -D ADVERT_LAT=0.0
  58. ; -D ADVERT_LON=0.0
  59. ; -D ADMIN_PASSWORD='"password"'
  60. ; -D MAX_NEIGHBOURS=50
  61. ; -D WITH_RS232_BRIDGE=Serial2
  62. ; -D WITH_RS232_BRIDGE_RX=5
  63. ; -D WITH_RS232_BRIDGE_TX=6
  64. ; -D BRIDGE_DEBUG=1
  65. ; ; -D MESH_PACKET_LOGGING=1
  66. ; ; -D MESH_DEBUG=1
  67. ; build_src_filter = ${LilyGo_T3S3_sx1276.build_src_filter}
  68. ; +<helpers/bridges/RS232Bridge.cpp>
  69. ; +<helpers/ui/SSD1306Display.cpp>
  70. ; +<../examples/simple_repeater>
  71. ; lib_deps =
  72. ; ${LilyGo_T3S3_sx1276.lib_deps}
  73. ; ${esp32_ota.lib_deps}
  74. [env:LilyGo_T3S3_sx1276_repeater_bridge_espnow]
  75. extends = LilyGo_T3S3_sx1276
  76. build_flags =
  77. ${LilyGo_T3S3_sx1276.build_flags}
  78. -D DISPLAY_CLASS=SSD1306Display
  79. -D ADVERT_NAME='"ESPNow Bridge"'
  80. -D ADVERT_LAT=0.0
  81. -D ADVERT_LON=0.0
  82. -D ADMIN_PASSWORD='"password"'
  83. -D MAX_NEIGHBOURS=50
  84. -D WITH_ESPNOW_BRIDGE=1
  85. ; -D BRIDGE_DEBUG=1
  86. ; -D MESH_PACKET_LOGGING=1
  87. ; -D MESH_DEBUG=1
  88. build_src_filter = ${LilyGo_T3S3_sx1276.build_src_filter}
  89. +<helpers/bridges/ESPNowBridge.cpp>
  90. +<helpers/ui/SSD1306Display.cpp>
  91. +<../examples/simple_repeater>
  92. lib_deps =
  93. ${LilyGo_T3S3_sx1276.lib_deps}
  94. ${esp32_ota.lib_deps}
  95. [env:LilyGo_T3S3_sx1276_terminal_chat]
  96. extends = LilyGo_T3S3_sx1276
  97. build_flags =
  98. ${LilyGo_T3S3_sx1276.build_flags}
  99. -D MAX_CONTACTS=350
  100. -D MAX_GROUP_CHANNELS=1
  101. ; -D MESH_PACKET_LOGGING=1
  102. ; -D MESH_DEBUG=1
  103. build_src_filter = ${LilyGo_T3S3_sx1276.build_src_filter}
  104. +<../examples/simple_secure_chat/main.cpp>
  105. lib_deps =
  106. ${LilyGo_T3S3_sx1276.lib_deps}
  107. densaugeo/base64 @ ~1.4.0
  108. [env:LilyGo_T3S3_sx1276_room_server]
  109. extends = LilyGo_T3S3_sx1276
  110. build_flags =
  111. ${LilyGo_T3S3_sx1276.build_flags}
  112. -D DISPLAY_CLASS=SSD1306Display
  113. -D ADVERT_NAME='"T3S3-1276 Room"'
  114. -D ADVERT_LAT=0.0
  115. -D ADVERT_LON=0.0
  116. -D ADMIN_PASSWORD='"password"'
  117. -D ROOM_PASSWORD='"hello"'
  118. ; -D MESH_PACKET_LOGGING=1
  119. ; -D MESH_DEBUG=1
  120. build_src_filter = ${LilyGo_T3S3_sx1276.build_src_filter}
  121. +<helpers/ui/SSD1306Display.cpp>
  122. +<../examples/simple_room_server>
  123. lib_deps =
  124. ${LilyGo_T3S3_sx1276.lib_deps}
  125. ${esp32_ota.lib_deps}
  126. [env:LilyGo_T3S3_sx1276_companion_radio_usb]
  127. extends = LilyGo_T3S3_sx1276
  128. upload_speed = 115200
  129. build_flags =
  130. ${LilyGo_T3S3_sx1276.build_flags}
  131. -I examples/companion_radio/ui-new
  132. -D DISPLAY_CLASS=SSD1306Display
  133. -D MAX_CONTACTS=350
  134. -D MAX_GROUP_CHANNELS=40
  135. build_src_filter = ${LilyGo_T3S3_sx1276.build_src_filter}
  136. +<helpers/ui/SSD1306Display.cpp>
  137. +<helpers/ui/MomentaryButton.cpp>
  138. +<../examples/companion_radio/*.cpp>
  139. +<../examples/companion_radio/ui-new/*.cpp>
  140. lib_deps =
  141. ${LilyGo_T3S3_sx1276.lib_deps}
  142. densaugeo/base64 @ ~1.4.0
  143. [env:LilyGo_T3S3_sx1276_companion_radio_ble]
  144. extends = LilyGo_T3S3_sx1276
  145. build_flags =
  146. ${LilyGo_T3S3_sx1276.build_flags}
  147. -I examples/companion_radio/ui-new
  148. -D DISPLAY_CLASS=SSD1306Display
  149. -D MAX_CONTACTS=350
  150. -D MAX_GROUP_CHANNELS=40
  151. -D BLE_PIN_CODE=123456
  152. -D BLE_DEBUG_LOGGING=1
  153. -D OFFLINE_QUEUE_SIZE=256
  154. ; -D MESH_PACKET_LOGGING=1
  155. ; -D MESH_DEBUG=1
  156. build_src_filter = ${LilyGo_T3S3_sx1276.build_src_filter}
  157. +<helpers/esp32/*.cpp>
  158. +<helpers/ui/SSD1306Display.cpp>
  159. +<helpers/ui/MomentaryButton.cpp>
  160. +<../examples/companion_radio/*.cpp>
  161. +<../examples/companion_radio/ui-new/*.cpp>
  162. lib_deps =
  163. ${LilyGo_T3S3_sx1276.lib_deps}
  164. densaugeo/base64 @ ~1.4.0
  165. [env:LilyGo_T3S3_sx1276_kiss_modem]
  166. extends = LilyGo_T3S3_sx1276
  167. build_src_filter = ${LilyGo_T3S3_sx1276.build_src_filter}
  168. +<../examples/kiss_modem/>