platformio.ini 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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=50
  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. board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld
  70. board_upload.maximum_size = 712704
  71. build_flags =
  72. ${Heltec_t114.build_flags}
  73. -I examples/companion_radio/ui-new
  74. -D MAX_CONTACTS=350
  75. -D MAX_GROUP_CHANNELS=40
  76. -D BLE_PIN_CODE=123456
  77. ; -D BLE_DEBUG_LOGGING=1
  78. -D OFFLINE_QUEUE_SIZE=256
  79. ; -D MESH_PACKET_LOGGING=1
  80. ; -D MESH_DEBUG=1
  81. build_src_filter = ${Heltec_t114.build_src_filter}
  82. +<helpers/nrf52/SerialBLEInterface.cpp>
  83. +<../examples/companion_radio/*.cpp>
  84. +<../examples/companion_radio/ui-new/*.cpp>
  85. lib_deps =
  86. ${Heltec_t114.lib_deps}
  87. densaugeo/base64 @ ~1.4.0
  88. [env:Heltec_t114_without_display_companion_radio_usb]
  89. extends = Heltec_t114
  90. board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld
  91. board_upload.maximum_size = 712704
  92. build_flags =
  93. ${Heltec_t114.build_flags}
  94. -I examples/companion_radio/ui-new
  95. -D MAX_CONTACTS=350
  96. -D MAX_GROUP_CHANNELS=40
  97. ; -D BLE_PIN_CODE=123456
  98. ; -D BLE_DEBUG_LOGGING=1
  99. ; -D MESH_PACKET_LOGGING=1
  100. ; -D MESH_DEBUG=1
  101. build_src_filter = ${Heltec_t114.build_src_filter}
  102. +<helpers/nrf52/*.cpp>
  103. +<../examples/companion_radio/*.cpp>
  104. +<../examples/companion_radio/ui-new/*.cpp>
  105. lib_deps =
  106. ${Heltec_t114.lib_deps}
  107. densaugeo/base64 @ ~1.4.0
  108. ;
  109. ; Heltec T114 with ST7789 display
  110. ;
  111. [Heltec_t114_with_display]
  112. extends = Heltec_t114
  113. board = heltec_t114
  114. board_build.ldscript = boards/nrf52840_s140_v6.ld
  115. build_flags = ${Heltec_t114.build_flags}
  116. -D HELTEC_T114_WITH_DISPLAY
  117. -D DISPLAY_CLASS=ST7789Display
  118. build_src_filter = ${Heltec_t114.build_src_filter}
  119. +<helpers/ui/ST7789Display.cpp>
  120. +<helpers/ui/MomentaryButton.cpp>
  121. +<helpers/ui/OLEDDisplay.cpp>
  122. +<helpers/ui/OLEDDisplayFonts.cpp>
  123. lib_deps =
  124. ${Heltec_t114.lib_deps}
  125. debug_tool = jlink
  126. upload_protocol = nrfutil
  127. [env:Heltec_t114_repeater]
  128. extends = Heltec_t114_with_display
  129. build_src_filter = ${Heltec_t114_with_display.build_src_filter}
  130. +<../examples/simple_repeater>
  131. build_flags =
  132. ${Heltec_t114_with_display.build_flags}
  133. -D ADVERT_NAME='"Heltec_T114 Repeater"'
  134. -D ADVERT_LAT=0.0
  135. -D ADVERT_LON=0.0
  136. -D ADMIN_PASSWORD='"password"'
  137. -D MAX_NEIGHBOURS=50
  138. ; -D MESH_PACKET_LOGGING=1
  139. ; -D MESH_DEBUG=1
  140. [env:Heltec_t114_room_server]
  141. extends = Heltec_t114_with_display
  142. build_src_filter = ${Heltec_t114_with_display.build_src_filter}
  143. +<../examples/simple_room_server>
  144. build_flags =
  145. ${Heltec_t114_with_display.build_flags}
  146. -D ADVERT_NAME='"Heltec_T114 Room"'
  147. -D ADVERT_LAT=0.0
  148. -D ADVERT_LON=0.0
  149. -D ADMIN_PASSWORD='"password"'
  150. -D ROOM_PASSWORD='"hello"'
  151. ; -D MESH_PACKET_LOGGING=1
  152. ; -D MESH_DEBUG=1
  153. [env:Heltec_t114_companion_radio_ble]
  154. extends = Heltec_t114_with_display
  155. board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld
  156. board_upload.maximum_size = 712704
  157. build_flags =
  158. ${Heltec_t114_with_display.build_flags}
  159. -I examples/companion_radio/ui-new
  160. -D MAX_CONTACTS=350
  161. -D MAX_GROUP_CHANNELS=40
  162. -D BLE_PIN_CODE=123456
  163. -D ENV_INCLUDE_GPS=1 ; enable the GPS page in UI
  164. ; -D BLE_DEBUG_LOGGING=1
  165. -D OFFLINE_QUEUE_SIZE=256
  166. ; -D MESH_PACKET_LOGGING=1
  167. ; -D MESH_DEBUG=1
  168. build_src_filter = ${Heltec_t114_with_display.build_src_filter}
  169. +<helpers/nrf52/SerialBLEInterface.cpp>
  170. +<../examples/companion_radio/*.cpp>
  171. +<../examples/companion_radio/ui-new/*.cpp>
  172. lib_deps =
  173. ${Heltec_t114_with_display.lib_deps}
  174. densaugeo/base64 @ ~1.4.0
  175. [env:Heltec_t114_companion_radio_usb]
  176. extends = Heltec_t114_with_display
  177. board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld
  178. board_upload.maximum_size = 712704
  179. build_flags =
  180. ${Heltec_t114_with_display.build_flags}
  181. -I examples/companion_radio/ui-new
  182. -D MAX_CONTACTS=350
  183. -D MAX_GROUP_CHANNELS=40
  184. ; -D BLE_PIN_CODE=123456
  185. ; -D BLE_DEBUG_LOGGING=1
  186. ; -D MESH_PACKET_LOGGING=1
  187. ; -D MESH_DEBUG=1
  188. build_src_filter = ${Heltec_t114_with_display.build_src_filter}
  189. +<helpers/nrf52/*.cpp>
  190. +<../examples/companion_radio/*.cpp>
  191. +<../examples/companion_radio/ui-new/*.cpp>
  192. lib_deps =
  193. ${Heltec_t114_with_display.lib_deps}
  194. densaugeo/base64 @ ~1.4.0