platformio.ini 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 RADIO_CLASS=CustomSX1262
  13. -D WRAPPER_CLASS=CustomSX1262Wrapper
  14. -D DISPLAY_CLASS=SSD1306Display
  15. -D LORA_TX_POWER=22
  16. -D P_LORA_TX_LED=4
  17. -D PIN_BOARD_SDA=21
  18. -D PIN_BOARD_SCL=22
  19. -D PIN_GPS_RX=12
  20. -D PIN_GPS_TX=34
  21. -D PIN_USER_BTN=38
  22. -D ENV_INCLUDE_GPS=1
  23. build_src_filter = ${esp32_base.build_src_filter}
  24. +<../variants/lilygo_tbeam_SX1262>
  25. +<helpers/ui/SSD1306Display.cpp>
  26. +<helpers/esp32/TBeamBoard.cpp>
  27. +<helpers/sensors>
  28. board_build.partitions = min_spiffs.csv ; get around 4mb flash limit
  29. lib_deps =
  30. ${esp32_base.lib_deps}
  31. lewisxhe/XPowersLib@^0.2.7
  32. adafruit/Adafruit SSD1306 @ ^2.5.13
  33. stevemarple/MicroNMEA @ ^2.0.6
  34. [env:Tbeam_SX1262_companion_radio_ble]
  35. extends = LilyGo_TBeam_SX1262
  36. board_build.upload.maximum_ram_size=2000000
  37. build_flags =
  38. ${LilyGo_TBeam_SX1262.build_flags}
  39. -I examples/companion_radio/ui-new
  40. -D MAX_CONTACTS=160
  41. -D MAX_GROUP_CHANNELS=8
  42. -D BLE_PIN_CODE=123456
  43. -D OFFLINE_QUEUE_SIZE=256
  44. ; -D BLE_DEBUG_LOGGING=1
  45. ; -D MESH_PACKET_LOGGING=1
  46. ; -D MESH_DEBUG=1
  47. ; -D RADIOLIB_DEBUG_BASIC=1
  48. ; -D MESH_PACKET_LOGGING=1
  49. ; -D MESH_DEBUG=1
  50. build_src_filter = ${LilyGo_TBeam_SX1262.build_src_filter}
  51. +<helpers/esp32/*.cpp>
  52. +<helpers/ui/MomentaryButton.cpp>
  53. +<../examples/companion_radio/*.cpp>
  54. +<../examples/companion_radio/ui-new/*.cpp>
  55. lib_deps =
  56. ${LilyGo_TBeam_SX1262.lib_deps}
  57. densaugeo/base64 @ ~1.4.0
  58. [env:Tbeam_SX1262_repeater]
  59. extends = LilyGo_TBeam_SX1262
  60. build_flags =
  61. ${LilyGo_TBeam_SX1262.build_flags}
  62. -D ADVERT_NAME='"Tbeam SX1262 Repeater"'
  63. -D ADVERT_LAT=0.0
  64. -D ADVERT_LON=0.0
  65. -D ADMIN_PASSWORD='"password"'
  66. -D MAX_NEIGHBOURS=8
  67. ; -D MESH_PACKET_LOGGING=1
  68. ; -D MESH_DEBUG=1
  69. build_src_filter = ${LilyGo_TBeam_SX1262.build_src_filter}
  70. +<../examples/simple_repeater>
  71. lib_deps =
  72. ${LilyGo_TBeam_SX1262.lib_deps}
  73. ${esp32_ota.lib_deps}
  74. [env:Tbeam_SX1262_room_server]
  75. extends = LilyGo_TBeam_SX1262
  76. build_flags =
  77. ${LilyGo_TBeam_SX1262.build_flags}
  78. -D ADVERT_NAME='"Tbeam SX1262 Room"'
  79. -D ADVERT_LAT=0.0
  80. -D ADVERT_LON=0.0
  81. -D ADMIN_PASSWORD='"password"'
  82. -D ROOM_PASSWORD='"hello"'
  83. ; -D MESH_PACKET_LOGGING=1
  84. ; -D MESH_DEBUG=1
  85. build_src_filter = ${LilyGo_TBeam_SX1262.build_src_filter}
  86. +<../examples/simple_room_server>
  87. lib_deps =
  88. ${LilyGo_TBeam_SX1262.lib_deps}
  89. ${esp32_ota.lib_deps}