platformio.ini 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. [Heltec_t114]
  2. extends = nrf52_base
  3. board = heltec_t114
  4. board_build.ldscript = boards/nrf52840_s140_v6.ld
  5. build_flags = ${nrf52_base.build_flags}
  6. -I lib/nrf52/s140_nrf52_6.1.1_API/include
  7. -I lib/nrf52/s140_nrf52_6.1.1_API/include/nrf52
  8. -I variants/heltec_t114
  9. -I src/helpers/ui
  10. -D HELTEC_T114
  11. -D P_LORA_DIO_1=20
  12. -D P_LORA_NSS=24
  13. -D P_LORA_RESET=25
  14. -D P_LORA_BUSY=17
  15. -D P_LORA_SCLK=19
  16. -D P_LORA_MISO=23
  17. -D P_LORA_MOSI=22
  18. -D P_LORA_TX_LED=35
  19. -D RADIO_CLASS=CustomSX1262
  20. -D WRAPPER_CLASS=CustomSX1262Wrapper
  21. -D LORA_TX_POWER=22
  22. -D SX126X_POWER_EN=37
  23. -D SX126X_DIO2_AS_RF_SWITCH=true
  24. -D SX126X_DIO3_TCXO_VOLTAGE=1.8
  25. -D SX126X_CURRENT_LIMIT=140
  26. -D SX126X_RX_BOOSTED_GAIN=1
  27. -D ST7789
  28. -D DISPLAY_CLASS=ST7789Display
  29. build_src_filter = ${nrf52_base.build_src_filter}
  30. +<helpers/*.cpp>
  31. +<../variants/heltec_t114>
  32. +<helpers/ui/ST7789Display.cpp>
  33. +<helpers/ui/MomentaryButton.cpp>
  34. +<helpers/ui/OLEDDisplay.cpp>
  35. +<helpers/ui/OLEDDisplayFonts.cpp>
  36. lib_deps =
  37. ${nrf52_base.lib_deps}
  38. stevemarple/MicroNMEA @ ^2.0.6
  39. adafruit/Adafruit GFX Library @ ^1.12.1
  40. debug_tool = jlink
  41. upload_protocol = nrfutil
  42. [env:Heltec_t114_repeater]
  43. extends = Heltec_t114
  44. build_src_filter = ${Heltec_t114.build_src_filter}
  45. +<../examples/simple_repeater>
  46. build_flags =
  47. ${Heltec_t114.build_flags}
  48. -D ADVERT_NAME='"Heltec_T114 Repeater"'
  49. -D ADVERT_LAT=0.0
  50. -D ADVERT_LON=0.0
  51. -D ADMIN_PASSWORD='"password"'
  52. -D MAX_NEIGHBOURS=8
  53. ; -D MESH_PACKET_LOGGING=1
  54. ; -D MESH_DEBUG=1
  55. [env:Heltec_t114_room_server]
  56. extends = Heltec_t114
  57. build_src_filter = ${Heltec_t114.build_src_filter}
  58. +<../examples/simple_room_server>
  59. build_flags =
  60. ${Heltec_t114.build_flags}
  61. -D ADVERT_NAME='"Heltec_T114 Room"'
  62. -D ADVERT_LAT=0.0
  63. -D ADVERT_LON=0.0
  64. -D ADMIN_PASSWORD='"password"'
  65. -D ROOM_PASSWORD='"hello"'
  66. ; -D MESH_PACKET_LOGGING=1
  67. ; -D MESH_DEBUG=1
  68. [env:Heltec_t114_companion_radio_ble]
  69. extends = Heltec_t114
  70. build_flags =
  71. ${Heltec_t114.build_flags}
  72. -I examples/companion_radio/ui-new
  73. -D MAX_CONTACTS=350
  74. -D MAX_GROUP_CHANNELS=40
  75. -D BLE_PIN_CODE=123456
  76. ; -D BLE_DEBUG_LOGGING=1
  77. -D OFFLINE_QUEUE_SIZE=256
  78. ; -D MESH_PACKET_LOGGING=1
  79. ; -D MESH_DEBUG=1
  80. build_src_filter = ${Heltec_t114.build_src_filter}
  81. +<helpers/nrf52/SerialBLEInterface.cpp>
  82. +<../examples/companion_radio/*.cpp>
  83. +<../examples/companion_radio/ui-new/*.cpp>
  84. lib_deps =
  85. ${Heltec_t114.lib_deps}
  86. densaugeo/base64 @ ~1.4.0
  87. [env:Heltec_t114_companion_radio_usb]
  88. extends = Heltec_t114
  89. build_flags =
  90. ${Heltec_t114.build_flags}
  91. -I examples/companion_radio/ui-new
  92. -D MAX_CONTACTS=350
  93. -D MAX_GROUP_CHANNELS=40
  94. ; -D BLE_PIN_CODE=123456
  95. ; -D BLE_DEBUG_LOGGING=1
  96. ; -D MESH_PACKET_LOGGING=1
  97. ; -D MESH_DEBUG=1
  98. build_src_filter = ${Heltec_t114.build_src_filter}
  99. +<helpers/nrf52/*.cpp>
  100. +<../examples/companion_radio/*.cpp>
  101. +<../examples/companion_radio/ui-new/*.cpp>
  102. lib_deps =
  103. ${Heltec_t114.lib_deps}
  104. densaugeo/base64 @ ~1.4.0