platformio.ini 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. [LilyGo_TBeam]
  2. extends = esp32_base
  3. board = ttgo-t-beam
  4. build_flags =
  5. ${esp32_base.build_flags}
  6. -I variants/lilygo_tbeam
  7. -D LILYGO_TBEAM
  8. -D RADIO_CLASS=CustomSX1276
  9. -D WRAPPER_CLASS=CustomSX1276Wrapper
  10. -D SX127X_CURRENT_LIMIT=120
  11. -D LORA_TX_POWER=20
  12. -D P_LORA_TX_LED=4
  13. -D PIN_BOARD_SDA=21
  14. -D PIN_BOARD_SCL=22
  15. -D PIN_USER_BTN=38
  16. build_src_filter = ${esp32_base.build_src_filter}
  17. +<../variants/lilygo_tbeam>
  18. board_build.partitions = min_spiffs.csv ; get around 4mb flash limit
  19. lib_deps =
  20. ${esp32_base.lib_deps}
  21. lewisxhe/XPowersLib@^0.2.7
  22. adafruit/Adafruit SSD1306 @ ^2.5.13
  23. [env:Tbeam_companion_radio_ble]
  24. extends = LilyGo_TBeam
  25. board_build.upload.maximum_ram_size=2000000
  26. build_flags =
  27. ${LilyGo_TBeam.build_flags}
  28. -D DISPLAY_CLASS=SSD1306Display
  29. -D MAX_CONTACTS=100
  30. -D MAX_GROUP_CHANNELS=8
  31. -D BLE_PIN_CODE=123456
  32. -D BLE_DEBUG_LOGGING=1
  33. -D OFFLINE_QUEUE_SIZE=256
  34. ; -D RADIOLIB_DEBUG_BASIC=1
  35. ; -D MESH_PACKET_LOGGING=1
  36. ; -D MESH_DEBUG=1
  37. build_src_filter = ${LilyGo_TBeam.build_src_filter}
  38. +<helpers/esp32/*.cpp>
  39. +<helpers/ui/SSD1306Display.cpp>
  40. +<../examples/companion_radio>
  41. lib_deps =
  42. ${LilyGo_TBeam.lib_deps}
  43. densaugeo/base64 @ ~1.4.0
  44. [env:Tbeam_repeater]
  45. extends = LilyGo_TBeam
  46. build_flags =
  47. ${LilyGo_TBeam.build_flags}
  48. -D DISPLAY_CLASS=SSD1306Display
  49. -D ADVERT_NAME='"Tbeam Repeater"'
  50. -D ADVERT_LAT=0.0
  51. -D ADVERT_LON=0.0
  52. -D ADMIN_PASSWORD='"password"'
  53. -D MAX_NEIGHBOURS=8
  54. ; -D MESH_PACKET_LOGGING=1
  55. ; -D MESH_DEBUG=1
  56. build_src_filter = ${LilyGo_TBeam.build_src_filter}
  57. +<helpers/ui/SSD1306Display.cpp>
  58. +<../examples/simple_repeater>
  59. lib_deps =
  60. ${LilyGo_TBeam.lib_deps}
  61. ${esp32_ota.lib_deps}