platformio.ini 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. ;
  2. ; Heltec T114 without display
  3. ;
  4. [Heltec_t114]
  5. extends = nrf52_base
  6. board = heltec_t114
  7. board_build.ldscript = boards/nrf52840_s140_v6.ld
  8. build_flags = ${nrf52_base.build_flags}
  9. -I lib/nrf52/s140_nrf52_6.1.1_API/include
  10. -I lib/nrf52/s140_nrf52_6.1.1_API/include/nrf52
  11. -I variants/heltec_t114
  12. -I src/helpers/ui
  13. -D HELTEC_T114
  14. -D P_LORA_DIO_1=20
  15. -D P_LORA_NSS=24
  16. -D P_LORA_RESET=25
  17. -D P_LORA_BUSY=17
  18. -D P_LORA_SCLK=19
  19. -D P_LORA_MISO=23
  20. -D P_LORA_MOSI=22
  21. -D P_LORA_TX_LED=35
  22. -D RADIO_CLASS=CustomSX1262
  23. -D WRAPPER_CLASS=CustomSX1262Wrapper
  24. -D LORA_TX_POWER=22
  25. -D SX126X_POWER_EN=37
  26. -D SX126X_DIO2_AS_RF_SWITCH=true
  27. -D SX126X_DIO3_TCXO_VOLTAGE=1.8
  28. -D SX126X_CURRENT_LIMIT=140
  29. -D SX126X_RX_BOOSTED_GAIN=1
  30. -D DISPLAY_CLASS=NullDisplayDriver
  31. -D ST7789
  32. build_src_filter = ${nrf52_base.build_src_filter}
  33. +<helpers/*.cpp>
  34. +<../variants/heltec_t114>
  35. lib_deps =
  36. ${nrf52_base.lib_deps}
  37. stevemarple/MicroNMEA @ ^2.0.6
  38. adafruit/Adafruit GFX Library @ ^1.12.1
  39. debug_tool = jlink
  40. upload_protocol = nrfutil
  41. [env:Heltec_t114_without_display_repeater]
  42. extends = Heltec_t114
  43. build_src_filter = ${Heltec_t114.build_src_filter}
  44. +<../examples/simple_repeater>
  45. build_flags =
  46. ${Heltec_t114.build_flags}
  47. -D ADVERT_NAME='"Heltec_T114 Repeater"'
  48. -D ADVERT_LAT=0.0
  49. -D ADVERT_LON=0.0
  50. -D ADMIN_PASSWORD='"password"'
  51. -D MAX_NEIGHBOURS=8
  52. ; -D MESH_PACKET_LOGGING=1
  53. ; -D MESH_DEBUG=1
  54. [env:Heltec_t114_without_display_room_server]
  55. extends = Heltec_t114
  56. build_src_filter = ${Heltec_t114.build_src_filter}
  57. +<../examples/simple_room_server>
  58. build_flags =
  59. ${Heltec_t114.build_flags}
  60. -D ADVERT_NAME='"Heltec_T114 Room"'
  61. -D ADVERT_LAT=0.0
  62. -D ADVERT_LON=0.0
  63. -D ADMIN_PASSWORD='"password"'
  64. -D ROOM_PASSWORD='"hello"'
  65. ; -D MESH_PACKET_LOGGING=1
  66. ; -D MESH_DEBUG=1
  67. [env:Heltec_t114_without_display_companion_radio_ble]
  68. extends = Heltec_t114
  69. build_flags =
  70. ${Heltec_t114.build_flags}
  71. -I examples/companion_radio/ui-new
  72. -D MAX_CONTACTS=350
  73. -D MAX_GROUP_CHANNELS=40
  74. -D BLE_PIN_CODE=123456
  75. ; -D BLE_DEBUG_LOGGING=1
  76. -D OFFLINE_QUEUE_SIZE=256
  77. ; -D MESH_PACKET_LOGGING=1
  78. ; -D MESH_DEBUG=1
  79. build_src_filter = ${Heltec_t114.build_src_filter}
  80. +<helpers/nrf52/SerialBLEInterface.cpp>
  81. +<../examples/companion_radio/*.cpp>
  82. +<../examples/companion_radio/ui-new/*.cpp>
  83. lib_deps =
  84. ${Heltec_t114.lib_deps}
  85. densaugeo/base64 @ ~1.4.0
  86. [env:Heltec_t114_without_display_companion_radio_usb]
  87. extends = Heltec_t114
  88. build_flags =
  89. ${Heltec_t114.build_flags}
  90. -I examples/companion_radio/ui-new
  91. -D MAX_CONTACTS=350
  92. -D MAX_GROUP_CHANNELS=40
  93. ; -D BLE_PIN_CODE=123456
  94. ; -D BLE_DEBUG_LOGGING=1
  95. ; -D MESH_PACKET_LOGGING=1
  96. ; -D MESH_DEBUG=1
  97. build_src_filter = ${Heltec_t114.build_src_filter}
  98. +<helpers/nrf52/*.cpp>
  99. +<../examples/companion_radio/*.cpp>
  100. +<../examples/companion_radio/ui-new/*.cpp>
  101. lib_deps =
  102. ${Heltec_t114.lib_deps}
  103. densaugeo/base64 @ ~1.4.0
  104. ;
  105. ; Heltec T114 with ST7789 display
  106. ;
  107. [Heltec_t114_with_display]
  108. extends = Heltec_t114
  109. board = heltec_t114
  110. board_build.ldscript = boards/nrf52840_s140_v6.ld
  111. build_flags = ${Heltec_t114.build_flags}
  112. -D HELTEC_T114_WITH_DISPLAY
  113. -D DISPLAY_CLASS=ST7789Display
  114. build_src_filter = ${Heltec_t114.build_src_filter}
  115. +<helpers/ui/ST7789Display.cpp>
  116. +<helpers/ui/MomentaryButton.cpp>
  117. +<helpers/ui/OLEDDisplay.cpp>
  118. +<helpers/ui/OLEDDisplayFonts.cpp>
  119. lib_deps =
  120. ${Heltec_t114.lib_deps}
  121. debug_tool = jlink
  122. upload_protocol = nrfutil
  123. [env:Heltec_t114_repeater]
  124. extends = Heltec_t114_with_display
  125. build_src_filter = ${Heltec_t114_with_display.build_src_filter}
  126. +<../examples/simple_repeater>
  127. build_flags =
  128. ${Heltec_t114_with_display.build_flags}
  129. -D ADVERT_NAME='"Heltec_T114 Repeater"'
  130. -D ADVERT_LAT=0.0
  131. -D ADVERT_LON=0.0
  132. -D ADMIN_PASSWORD='"password"'
  133. -D MAX_NEIGHBOURS=8
  134. ; -D MESH_PACKET_LOGGING=1
  135. ; -D MESH_DEBUG=1
  136. [env:Heltec_t114_room_server]
  137. extends = Heltec_t114_with_display
  138. build_src_filter = ${Heltec_t114_with_display.build_src_filter}
  139. +<../examples/simple_room_server>
  140. build_flags =
  141. ${Heltec_t114_with_display.build_flags}
  142. -D ADVERT_NAME='"Heltec_T114 Room"'
  143. -D ADVERT_LAT=0.0
  144. -D ADVERT_LON=0.0
  145. -D ADMIN_PASSWORD='"password"'
  146. -D ROOM_PASSWORD='"hello"'
  147. ; -D MESH_PACKET_LOGGING=1
  148. ; -D MESH_DEBUG=1
  149. [env:Heltec_t114_companion_radio_ble]
  150. extends = Heltec_t114_with_display
  151. build_flags =
  152. ${Heltec_t114_with_display.build_flags}
  153. -I examples/companion_radio/ui-new
  154. -D MAX_CONTACTS=100
  155. -D MAX_GROUP_CHANNELS=8
  156. -D BLE_PIN_CODE=123456
  157. ; -D BLE_DEBUG_LOGGING=1
  158. -D OFFLINE_QUEUE_SIZE=256
  159. ; -D MESH_PACKET_LOGGING=1
  160. ; -D MESH_DEBUG=1
  161. build_src_filter = ${Heltec_t114_with_display.build_src_filter}
  162. +<helpers/nrf52/SerialBLEInterface.cpp>
  163. +<../examples/companion_radio/*.cpp>
  164. +<../examples/companion_radio/ui-new/*.cpp>
  165. lib_deps =
  166. ${Heltec_t114_with_display.lib_deps}
  167. densaugeo/base64 @ ~1.4.0
  168. [env:Heltec_t114_companion_radio_usb]
  169. extends = Heltec_t114_with_display
  170. build_flags =
  171. ${Heltec_t114_with_display.build_flags}
  172. -I examples/companion_radio/ui-new
  173. -D MAX_CONTACTS=100
  174. -D MAX_GROUP_CHANNELS=8
  175. ; -D BLE_PIN_CODE=123456
  176. ; -D BLE_DEBUG_LOGGING=1
  177. ; -D MESH_PACKET_LOGGING=1
  178. ; -D MESH_DEBUG=1
  179. build_src_filter = ${Heltec_t114_with_display.build_src_filter}
  180. +<helpers/nrf52/*.cpp>
  181. +<../examples/companion_radio/*.cpp>
  182. +<../examples/companion_radio/ui-new/*.cpp>
  183. lib_deps =
  184. ${Heltec_t114_with_display.lib_deps}
  185. densaugeo/base64 @ ~1.4.0