platformio.ini 3.8 KB

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