platformio.ini 3.9 KB

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