platformio.ini 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. [Meshadventurer]
  2. extends = esp32_base
  3. board = esp32doit-devkit-v1
  4. board_build.partitions = min_spiffs.csv ; get around 4mb flash limit
  5. build_flags =
  6. ${esp32_base.build_flags}
  7. -I variants/meshadventurer
  8. -D MESHADVENTURER
  9. -D P_LORA_TX_LED=2
  10. -D PIN_VBAT_READ=35
  11. -D PIN_USER_BTN_ANA=39
  12. -D P_LORA_DIO_1=33
  13. -D P_LORA_NSS=18
  14. -D P_LORA_RESET=23
  15. -D P_LORA_BUSY=32
  16. -D P_LORA_SCLK=5
  17. -D P_LORA_MOSI=27
  18. -D P_LORA_MISO=19
  19. -D SX126X_TXEN=13
  20. -D SX126X_RXEN=14
  21. -D PIN_BOARD_SDA=21
  22. -D PIN_BOARD_SCL=22
  23. -D SX126X_DIO2_AS_RF_SWITCH=false
  24. -D SX126X_DIO3_TCXO_VOLTAGE=1.8
  25. -D SX126X_RX_BOOSTED_GAIN=1
  26. -D PIN_GPS_RX=12
  27. -D PIN_GPS_TX=15
  28. -D DISPLAY_CLASS=SSD1306Display
  29. build_src_filter = ${esp32_base.build_src_filter}
  30. +<../variants/meshadventurer>
  31. lib_deps =
  32. ${esp32_base.lib_deps}
  33. stevemarple/MicroNMEA @ ^2.0.6
  34. adafruit/Adafruit SSD1306 @ ^2.5.13
  35. [env:Meshadventurer_sx1262_repeater]
  36. extends = Meshadventurer
  37. build_src_filter = ${Meshadventurer.build_src_filter}
  38. +<../examples/simple_repeater>
  39. +<helpers/ui/SSD1306Display.cpp>
  40. build_flags =
  41. ${Meshadventurer.build_flags}
  42. -D RADIO_CLASS=CustomSX1262
  43. -D WRAPPER_CLASS=CustomSX1262Wrapper
  44. -D LORA_TX_POWER=22
  45. -D ADVERT_NAME='"Meshadventurer Repeater"'
  46. -D ADVERT_LAT=0.0
  47. -D ADVERT_LON=0.0
  48. -D ADMIN_PASSWORD='"password"'
  49. -D MAX_NEIGHBOURS=8
  50. ; -D MESH_PACKET_LOGGING=1
  51. ; -D MESH_DEBUG=1
  52. lib_deps =
  53. ${Meshadventurer.lib_deps}
  54. ${esp32_ota.lib_deps}
  55. [env:Meshadventurer_sx1268_repeater]
  56. extends = Meshadventurer
  57. build_src_filter = ${Meshadventurer.build_src_filter}
  58. +<../examples/simple_repeater>
  59. +<helpers/ui/SSD1306Display.cpp>
  60. build_flags =
  61. ${Meshadventurer.build_flags}
  62. -D RADIO_CLASS=CustomSX1268
  63. -D WRAPPER_CLASS=CustomSX1268Wrapper
  64. -D LORA_TX_POWER=22
  65. -D ADVERT_NAME='"Meshadventurer Repeater"'
  66. -D ADVERT_LAT=0.0
  67. -D ADVERT_LON=0.0
  68. -D ADMIN_PASSWORD='"password"'
  69. -D MAX_NEIGHBOURS=8
  70. ; -D MESH_PACKET_LOGGING=1
  71. ; -D MESH_DEBUG=1
  72. lib_deps =
  73. ${Meshadventurer.lib_deps}
  74. ${esp32_ota.lib_deps}
  75. [env:Meshadventurer_sx1262_companion_radio_usb]
  76. extends = Meshadventurer
  77. build_src_filter = ${Meshadventurer.build_src_filter}
  78. +<../examples/companion_radio/*.cpp>
  79. +<helpers/ui/SSD1306Display.cpp>
  80. +<../examples/companion_radio/*.cpp>
  81. +<../examples/companion_radio/ui-new/*.cpp>
  82. build_flags =
  83. ${Meshadventurer.build_flags}
  84. -I examples/companion_radio/ui-new
  85. -D RADIO_CLASS=CustomSX1262
  86. -D WRAPPER_CLASS=CustomSX1262Wrapper
  87. -D LORA_TX_POWER=22
  88. -D MAX_CONTACTS=100
  89. -D MAX_GROUP_CHANNELS=8
  90. ; -D MESH_PACKET_LOGGING=1
  91. ; -D MESH_DEBUG=1
  92. lib_deps =
  93. ${Meshadventurer.lib_deps}
  94. densaugeo/base64 @ ~1.4.0
  95. [env:Meshadventurer_sx1262_companion_radio_ble]
  96. extends = Meshadventurer
  97. build_src_filter = ${Meshadventurer.build_src_filter}
  98. +<../examples/companion_radio/*.cpp>
  99. +<helpers/esp32/*.cpp>
  100. +<helpers/ui/SSD1306Display.cpp>
  101. +<../examples/companion_radio/*.cpp>
  102. +<../examples/companion_radio/ui-new/*.cpp>
  103. build_flags =
  104. ${Meshadventurer.build_flags}
  105. -I examples/companion_radio/ui-new
  106. -D RADIO_CLASS=CustomSX1262
  107. -D WRAPPER_CLASS=CustomSX1262Wrapper
  108. -D LORA_TX_POWER=22
  109. -D MAX_CONTACTS=100
  110. -D MAX_GROUP_CHANNELS=8
  111. -D BLE_PIN_CODE=123456
  112. -D BLE_DEBUG_LOGGING=1
  113. -D OFFLINE_QUEUE_SIZE=256
  114. -D MESH_PACKET_LOGGING=1
  115. -D MESH_DEBUG=1
  116. lib_deps =
  117. ${Meshadventurer.lib_deps}
  118. densaugeo/base64 @ ~1.4.0
  119. [env:Meshadventurer_sx1262_terminal_chat]
  120. extends = Meshadventurer
  121. build_flags =
  122. ${Meshadventurer.build_flags}
  123. -D RADIO_CLASS=CustomSX1262
  124. -D WRAPPER_CLASS=CustomSX1262Wrapper
  125. -D LORA_TX_POWER=22
  126. -D MAX_CONTACTS=100
  127. -D MAX_GROUP_CHANNELS=1
  128. ; -D MESH_PACKET_LOGGING=1
  129. ; -D MESH_DEBUG=1
  130. build_src_filter = ${Meshadventurer.build_src_filter}
  131. +<../examples/simple_secure_chat/main.cpp>
  132. +<helpers/ui/SSD1306Display.cpp>
  133. lib_deps =
  134. ${Meshadventurer.lib_deps}
  135. densaugeo/base64 @ ~1.4.0
  136. [env:Meshadventurer_sx1262_room_server]
  137. extends = Meshadventurer
  138. build_flags =
  139. ${Meshadventurer.build_flags}
  140. -D RADIO_CLASS=CustomSX1262
  141. -D WRAPPER_CLASS=CustomSX1262Wrapper
  142. -D LORA_TX_POWER=22
  143. -D ADVERT_NAME='"Meshadventurer Room"'
  144. -D ADVERT_LAT=0.0
  145. -D ADVERT_LON=0.0
  146. -D ADMIN_PASSWORD='"password"'
  147. -D ROOM_PASSWORD='"hello"'
  148. ; -D MESH_PACKET_LOGGING=1
  149. ; -D MESH_DEBUG=1
  150. build_src_filter = ${Meshadventurer.build_src_filter}
  151. +<../examples/simple_room_server>
  152. +<helpers/ui/SSD1306Display.cpp>
  153. lib_deps =
  154. ${Meshadventurer.lib_deps}
  155. ${esp32_ota.lib_deps}
  156. [env:Meshadventurer_sx1268_companion_radio_usb]
  157. extends = Meshadventurer
  158. build_src_filter = ${Meshadventurer.build_src_filter}
  159. +<../examples/companion_radio/*.cpp>
  160. +<helpers/ui/SSD1306Display.cpp>
  161. +<../examples/companion_radio/*.cpp>
  162. +<../examples/companion_radio/ui-new/*.cpp>
  163. build_flags =
  164. ${Meshadventurer.build_flags}
  165. -I examples/companion_radio/ui-new
  166. -D RADIO_CLASS=CustomSX1268
  167. -D WRAPPER_CLASS=CustomSX1268Wrapper
  168. -D LORA_TX_POWER=22
  169. -D MAX_CONTACTS=100
  170. -D MAX_GROUP_CHANNELS=8
  171. ; -D MESH_PACKET_LOGGING=1
  172. ; -D MESH_DEBUG=1
  173. lib_deps =
  174. ${Meshadventurer.lib_deps}
  175. densaugeo/base64 @ ~1.4.0
  176. [env:Meshadventurer_sx1268_companion_radio_ble]
  177. extends = Meshadventurer
  178. build_src_filter = ${Meshadventurer.build_src_filter}
  179. +<../examples/companion_radio/*.cpp>
  180. +<helpers/esp32/*.cpp>
  181. +<helpers/ui/SSD1306Display.cpp>
  182. +<../examples/companion_radio/*.cpp>
  183. +<../examples/companion_radio/ui-new/*.cpp>
  184. build_flags =
  185. ${Meshadventurer.build_flags}
  186. -I examples/companion_radio/ui-new
  187. -D RADIO_CLASS=CustomSX1268
  188. -D WRAPPER_CLASS=CustomSX1268Wrapper
  189. -D LORA_TX_POWER=22
  190. -D MAX_CONTACTS=100
  191. -D MAX_GROUP_CHANNELS=8
  192. -D BLE_PIN_CODE=123456
  193. -D BLE_DEBUG_LOGGING=1
  194. -D OFFLINE_QUEUE_SIZE=256
  195. -D MESH_PACKET_LOGGING=1
  196. -D MESH_DEBUG=1
  197. lib_deps =
  198. ${Meshadventurer.lib_deps}
  199. densaugeo/base64 @ ~1.4.0
  200. [env:Meshadventurer_sx1268_terminal_chat]
  201. extends = Meshadventurer
  202. build_flags =
  203. ${Meshadventurer.build_flags}
  204. -D RADIO_CLASS=CustomSX1268
  205. -D WRAPPER_CLASS=CustomSX1268Wrapper
  206. -D LORA_TX_POWER=22
  207. -D MAX_CONTACTS=100
  208. -D MAX_GROUP_CHANNELS=1
  209. ; -D MESH_PACKET_LOGGING=1
  210. ; -D MESH_DEBUG=1
  211. build_src_filter = ${Meshadventurer.build_src_filter}
  212. +<../examples/simple_secure_chat/main.cpp>
  213. +<helpers/ui/SSD1306Display.cpp>
  214. lib_deps =
  215. ${Meshadventurer.lib_deps}
  216. densaugeo/base64 @ ~1.4.0
  217. [env:Meshadventurer_sx1268_room_server]
  218. extends = Meshadventurer
  219. build_flags =
  220. ${Meshadventurer.build_flags}
  221. -D RADIO_CLASS=CustomSX1268
  222. -D WRAPPER_CLASS=CustomSX1268Wrapper
  223. -D LORA_TX_POWER=22
  224. -D ADVERT_NAME='"Meshadventurer Room"'
  225. -D ADVERT_LAT=0.0
  226. -D ADVERT_LON=0.0
  227. -D ADMIN_PASSWORD='"password"'
  228. -D ROOM_PASSWORD='"hello"'
  229. ; -D MESH_PACKET_LOGGING=1
  230. ; -D MESH_DEBUG=1
  231. build_src_filter = ${Meshadventurer.build_src_filter}
  232. +<../examples/simple_room_server>
  233. +<helpers/ui/SSD1306Display.cpp>
  234. lib_deps =
  235. ${Meshadventurer.lib_deps}
  236. ${esp32_ota.lib_deps}