platformio.ini 3.7 KB

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