platformio.ini 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. [LilyGo_TBeam_SX1262]
  2. extends = esp32_base
  3. board = ttgo-t-beam
  4. build_flags =
  5. ${esp32_base.build_flags}
  6. -I variants/lilygo_tbeam_SX1262
  7. -D TBEAM_SX1262
  8. -D P_LORA_DIO_0=26
  9. -D P_LORA_DIO_1=33
  10. -D P_LORA_NSS=18
  11. -D P_LORA_RESET=23
  12. -D P_LORA_SCLK=5
  13. -D P_LORA_MISO=19
  14. -D P_LORA_MOSI=27
  15. -D SX126X_DIO2_AS_RF_SWITCH=true
  16. -D SX126X_DIO3_TCXO_VOLTAGE=1.8
  17. -D SX126X_CURRENT_LIMIT=140
  18. -D SX126X_RX_BOOSTED_GAIN=1
  19. -D USE_SX1262
  20. -D RADIO_CLASS=CustomSX1262
  21. -D WRAPPER_CLASS=CustomSX1262Wrapper
  22. -D DISPLAY_CLASS=SSD1306Display
  23. -D LORA_TX_POWER=22
  24. -D P_LORA_TX_LED=4
  25. -D PIN_BOARD_SDA=21
  26. -D PIN_BOARD_SCL=22
  27. -D PIN_GPS_RX=12
  28. -D PIN_GPS_TX=34
  29. -D PIN_USER_BTN=38
  30. -D ENV_INCLUDE_GPS=1
  31. build_src_filter = ${esp32_base.build_src_filter}
  32. +<../variants/lilygo_tbeam_SX1262>
  33. +<helpers/ui/SSD1306Display.cpp>
  34. +<helpers/esp32/TBeamBoard.cpp>
  35. +<helpers/sensors>
  36. board_build.partitions = min_spiffs.csv ; get around 4mb flash limit
  37. lib_deps =
  38. ${esp32_base.lib_deps}
  39. lewisxhe/XPowersLib@^0.2.7
  40. adafruit/Adafruit SSD1306 @ ^2.5.13
  41. stevemarple/MicroNMEA @ ^2.0.6
  42. [env:Tbeam_SX1262_companion_radio_ble]
  43. extends = LilyGo_TBeam_SX1262
  44. board_build.upload.maximum_ram_size=2000000
  45. build_flags =
  46. ${LilyGo_TBeam_SX1262.build_flags}
  47. -I examples/companion_radio/ui-new
  48. -D MAX_CONTACTS=160
  49. -D MAX_GROUP_CHANNELS=8
  50. -D BLE_PIN_CODE=123456
  51. -D OFFLINE_QUEUE_SIZE=128
  52. ; -D BLE_DEBUG_LOGGING=1
  53. ; -D MESH_PACKET_LOGGING=1
  54. ; -D MESH_DEBUG=1
  55. ; -D RADIOLIB_DEBUG_BASIC=1
  56. ; -D MESH_PACKET_LOGGING=1
  57. ; -D MESH_DEBUG=1
  58. build_src_filter = ${LilyGo_TBeam_SX1262.build_src_filter}
  59. +<helpers/esp32/*.cpp>
  60. +<helpers/ui/MomentaryButton.cpp>
  61. +<../examples/companion_radio/*.cpp>
  62. +<../examples/companion_radio/ui-new/*.cpp>
  63. lib_deps =
  64. ${LilyGo_TBeam_SX1262.lib_deps}
  65. densaugeo/base64 @ ~1.4.0
  66. [env:Tbeam_SX1262_repeater]
  67. extends = LilyGo_TBeam_SX1262
  68. build_flags =
  69. ${LilyGo_TBeam_SX1262.build_flags}
  70. -D ADVERT_NAME='"Tbeam SX1262 Repeater"'
  71. -D ADVERT_LAT=0.0
  72. -D ADVERT_LON=0.0
  73. -D ADMIN_PASSWORD='"password"'
  74. -D MAX_NEIGHBOURS=50
  75. ; -D MESH_PACKET_LOGGING=1
  76. ; -D MESH_DEBUG=1
  77. build_src_filter = ${LilyGo_TBeam_SX1262.build_src_filter}
  78. +<../examples/simple_repeater>
  79. lib_deps =
  80. ${LilyGo_TBeam_SX1262.lib_deps}
  81. ${esp32_ota.lib_deps}
  82. ; [env:Tbeam_SX1262_repeater_bridge_rs232]
  83. ; extends = LilyGo_TBeam_SX1262
  84. ; build_flags =
  85. ; ${LilyGo_TBeam_SX1262.build_flags}
  86. ; -D ADVERT_NAME='"RS232 Bridge"'
  87. ; -D ADVERT_LAT=0.0
  88. ; -D ADVERT_LON=0.0
  89. ; -D ADMIN_PASSWORD='"password"'
  90. ; -D MAX_NEIGHBOURS=50
  91. ; -D WITH_RS232_BRIDGE=Serial2
  92. ; -D WITH_RS232_BRIDGE_RX=5
  93. ; -D WITH_RS232_BRIDGE_TX=6
  94. ; -D BRIDGE_DEBUG=1
  95. ; ; -D MESH_PACKET_LOGGING=1
  96. ; ; -D MESH_DEBUG=1
  97. ; build_src_filter = ${LilyGo_TBeam_SX1262.build_src_filter}
  98. ; +<helpers/bridges/RS232Bridge.cpp>
  99. ; +<../examples/simple_repeater>
  100. ; lib_deps =
  101. ; ${LilyGo_TBeam_SX1262.lib_deps}
  102. ; ${esp32_ota.lib_deps}
  103. [env:Tbeam_SX1262_repeater_bridge_espnow]
  104. extends = LilyGo_TBeam_SX1262
  105. build_flags =
  106. ${LilyGo_TBeam_SX1262.build_flags}
  107. -D ADVERT_NAME='"ESPNow Bridge"'
  108. -D ADVERT_LAT=0.0
  109. -D ADVERT_LON=0.0
  110. -D ADMIN_PASSWORD='"password"'
  111. -D MAX_NEIGHBOURS=50
  112. -D WITH_ESPNOW_BRIDGE=1
  113. ; -D BRIDGE_DEBUG=1
  114. ; -D MESH_PACKET_LOGGING=1
  115. ; -D MESH_DEBUG=1
  116. build_src_filter = ${LilyGo_TBeam_SX1262.build_src_filter}
  117. +<helpers/bridges/ESPNowBridge.cpp>
  118. +<../examples/simple_repeater>
  119. lib_deps =
  120. ${LilyGo_TBeam_SX1262.lib_deps}
  121. ${esp32_ota.lib_deps}
  122. [env:Tbeam_SX1262_room_server]
  123. extends = LilyGo_TBeam_SX1262
  124. build_flags =
  125. ${LilyGo_TBeam_SX1262.build_flags}
  126. -D ADVERT_NAME='"Tbeam SX1262 Room"'
  127. -D ADVERT_LAT=0.0
  128. -D ADVERT_LON=0.0
  129. -D ADMIN_PASSWORD='"password"'
  130. -D ROOM_PASSWORD='"hello"'
  131. ; -D MESH_PACKET_LOGGING=1
  132. ; -D MESH_DEBUG=1
  133. build_src_filter = ${LilyGo_TBeam_SX1262.build_src_filter}
  134. +<../examples/simple_room_server>
  135. lib_deps =
  136. ${LilyGo_TBeam_SX1262.lib_deps}
  137. ${esp32_ota.lib_deps}
  138. [env:Tbeam_SX1262_kiss_modem]
  139. extends = LilyGo_TBeam_SX1262
  140. build_src_filter = ${LilyGo_TBeam_SX1262.build_src_filter}
  141. +<../examples/kiss_modem/>