platformio.ini 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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=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. +<helpers/ui/MomentaryButton.cpp>
  32. +<helpers/ui/SSD1306Display.cpp>
  33. lib_deps =
  34. ${esp32_base.lib_deps}
  35. stevemarple/MicroNMEA @ ^2.0.6
  36. adafruit/Adafruit SSD1306 @ ^2.5.13
  37. [env:Meshadventurer_sx1262_repeater]
  38. extends = Meshadventurer
  39. build_src_filter = ${Meshadventurer.build_src_filter}
  40. +<../examples/simple_repeater>
  41. build_flags =
  42. ${Meshadventurer.build_flags}
  43. -D RADIO_CLASS=CustomSX1262
  44. -D WRAPPER_CLASS=CustomSX1262Wrapper
  45. -D LORA_TX_POWER=22
  46. -D ADVERT_NAME='"Meshadventurer Repeater"'
  47. -D ADVERT_LAT=0.0
  48. -D ADVERT_LON=0.0
  49. -D ADMIN_PASSWORD='"password"'
  50. -D MAX_NEIGHBOURS=50
  51. ; -D MESH_PACKET_LOGGING=1
  52. ; -D MESH_DEBUG=1
  53. lib_deps =
  54. ${Meshadventurer.lib_deps}
  55. ${esp32_ota.lib_deps}
  56. ; [env:Meshadventurer_sx1262_repeater_bridge_rs232]
  57. ; extends = Meshadventurer
  58. ; build_src_filter = ${Meshadventurer.build_src_filter}
  59. ; +<helpers/bridges/RS232Bridge.cpp>
  60. ; +<../examples/simple_repeater>
  61. ; build_flags =
  62. ; ${Meshadventurer.build_flags}
  63. ; -D RADIO_CLASS=CustomSX1262
  64. ; -D WRAPPER_CLASS=CustomSX1262Wrapper
  65. ; -D LORA_TX_POWER=22
  66. ; -D ADVERT_NAME='"RS232 Bridge"'
  67. ; -D ADVERT_LAT=0.0
  68. ; -D ADVERT_LON=0.0
  69. ; -D ADMIN_PASSWORD='"password"'
  70. ; -D MAX_NEIGHBOURS=50
  71. ; -D WITH_RS232_BRIDGE=Serial2
  72. ; -D WITH_RS232_BRIDGE_RX=5
  73. ; -D WITH_RS232_BRIDGE_TX=6
  74. ; -D BRIDGE_DEBUG=1
  75. ; ; -D MESH_PACKET_LOGGING=1
  76. ; ; -D MESH_DEBUG=1
  77. ; lib_deps =
  78. ; ${Meshadventurer.lib_deps}
  79. ; ${esp32_ota.lib_deps}
  80. [env:Meshadventurer_sx1262_repeater_bridge_espnow]
  81. extends = Meshadventurer
  82. build_src_filter = ${Meshadventurer.build_src_filter}
  83. +<helpers/bridges/ESPNowBridge.cpp>
  84. +<../examples/simple_repeater>
  85. build_flags =
  86. ${Meshadventurer.build_flags}
  87. -D RADIO_CLASS=CustomSX1262
  88. -D WRAPPER_CLASS=CustomSX1262Wrapper
  89. -D LORA_TX_POWER=22
  90. -D ADVERT_NAME='"ESPNow Bridge"'
  91. -D ADVERT_LAT=0.0
  92. -D ADVERT_LON=0.0
  93. -D ADMIN_PASSWORD='"password"'
  94. -D MAX_NEIGHBOURS=50
  95. -D WITH_ESPNOW_BRIDGE=1
  96. ; -D BRIDGE_DEBUG=1
  97. ; -D MESH_PACKET_LOGGING=1
  98. ; -D MESH_DEBUG=1
  99. lib_deps =
  100. ${Meshadventurer.lib_deps}
  101. ${esp32_ota.lib_deps}
  102. [env:Meshadventurer_sx1268_repeater]
  103. extends = Meshadventurer
  104. build_src_filter = ${Meshadventurer.build_src_filter}
  105. +<../examples/simple_repeater>
  106. build_flags =
  107. ${Meshadventurer.build_flags}
  108. -D RADIO_CLASS=CustomSX1268
  109. -D WRAPPER_CLASS=CustomSX1268Wrapper
  110. -D LORA_TX_POWER=22
  111. -D ADVERT_NAME='"Meshadventurer Repeater"'
  112. -D ADVERT_LAT=0.0
  113. -D ADVERT_LON=0.0
  114. -D ADMIN_PASSWORD='"password"'
  115. -D MAX_NEIGHBOURS=50
  116. ; -D MESH_PACKET_LOGGING=1
  117. ; -D MESH_DEBUG=1
  118. lib_deps =
  119. ${Meshadventurer.lib_deps}
  120. ${esp32_ota.lib_deps}
  121. ; [env:Meshadventurer_sx1268_repeater_bridge_rs232]
  122. ; extends = Meshadventurer
  123. ; build_src_filter = ${Meshadventurer.build_src_filter}
  124. ; +<helpers/bridges/RS232Bridge.cpp>
  125. ; +<../examples/simple_repeater>
  126. ; +<helpers/ui/SSD1306Display.cpp>
  127. ; build_flags =
  128. ; ${Meshadventurer.build_flags}
  129. ; -D RADIO_CLASS=CustomSX1268
  130. ; -D WRAPPER_CLASS=CustomSX1268Wrapper
  131. ; -D LORA_TX_POWER=22
  132. ; -D ADVERT_NAME='"RS232 Bridge"'
  133. ; -D ADVERT_LAT=0.0
  134. ; -D ADVERT_LON=0.0
  135. ; -D ADMIN_PASSWORD='"password"'
  136. ; -D MAX_NEIGHBOURS=50
  137. ; -D WITH_RS232_BRIDGE=Serial2
  138. ; -D WITH_RS232_BRIDGE_RX=5
  139. ; -D WITH_RS232_BRIDGE_TX=6
  140. ; -D BRIDGE_DEBUG=1
  141. ; ; -D MESH_PACKET_LOGGING=1
  142. ; ; -D MESH_DEBUG=1
  143. ; lib_deps =
  144. ; ${Meshadventurer.lib_deps}
  145. ; ${esp32_ota.lib_deps}
  146. [env:Meshadventurer_sx1268_repeater_bridge_espnow]
  147. extends = Meshadventurer
  148. build_src_filter = ${Meshadventurer.build_src_filter}
  149. +<helpers/bridges/ESPNowBridge.cpp>
  150. +<../examples/simple_repeater>
  151. build_flags =
  152. ${Meshadventurer.build_flags}
  153. -D RADIO_CLASS=CustomSX1268
  154. -D WRAPPER_CLASS=CustomSX1268Wrapper
  155. -D LORA_TX_POWER=22
  156. -D ADVERT_NAME='"ESPNow Bridge"'
  157. -D ADVERT_LAT=0.0
  158. -D ADVERT_LON=0.0
  159. -D ADMIN_PASSWORD='"password"'
  160. -D MAX_NEIGHBOURS=50
  161. -D WITH_ESPNOW_BRIDGE=1
  162. ; -D BRIDGE_DEBUG=1
  163. ; -D MESH_PACKET_LOGGING=1
  164. ; -D MESH_DEBUG=1
  165. lib_deps =
  166. ${Meshadventurer.lib_deps}
  167. ${esp32_ota.lib_deps}
  168. [env:Meshadventurer_sx1262_companion_radio_usb]
  169. extends = Meshadventurer
  170. build_src_filter = ${Meshadventurer.build_src_filter}
  171. +<../examples/companion_radio/*.cpp>
  172. +<../examples/companion_radio/ui-new/*.cpp>
  173. build_flags =
  174. ${Meshadventurer.build_flags}
  175. -I examples/companion_radio/ui-new
  176. -D RADIO_CLASS=CustomSX1262
  177. -D WRAPPER_CLASS=CustomSX1262Wrapper
  178. -D LORA_TX_POWER=22
  179. -D MAX_CONTACTS=160
  180. -D MAX_GROUP_CHANNELS=40
  181. -D OFFLINE_QUEUE_SIZE=128
  182. ; -D MESH_PACKET_LOGGING=1
  183. ; -D MESH_DEBUG=1
  184. lib_deps =
  185. ${Meshadventurer.lib_deps}
  186. densaugeo/base64 @ ~1.4.0
  187. [env:Meshadventurer_sx1262_companion_radio_ble]
  188. extends = Meshadventurer
  189. build_src_filter = ${Meshadventurer.build_src_filter}
  190. +<helpers/esp32/*.cpp>
  191. +<../examples/companion_radio/*.cpp>
  192. +<../examples/companion_radio/ui-new/*.cpp>
  193. build_flags =
  194. ${Meshadventurer.build_flags}
  195. -I examples/companion_radio/ui-new
  196. -D RADIO_CLASS=CustomSX1262
  197. -D WRAPPER_CLASS=CustomSX1262Wrapper
  198. -D LORA_TX_POWER=22
  199. -D MAX_CONTACTS=160
  200. -D MAX_GROUP_CHANNELS=40
  201. -D BLE_PIN_CODE=123456
  202. -D BLE_DEBUG_LOGGING=1
  203. -D OFFLINE_QUEUE_SIZE=128
  204. -D MESH_PACKET_LOGGING=1
  205. -D MESH_DEBUG=1
  206. lib_deps =
  207. ${Meshadventurer.lib_deps}
  208. densaugeo/base64 @ ~1.4.0
  209. [env:Meshadventurer_sx1262_terminal_chat]
  210. extends = Meshadventurer
  211. build_flags =
  212. ${Meshadventurer.build_flags}
  213. -D RADIO_CLASS=CustomSX1262
  214. -D WRAPPER_CLASS=CustomSX1262Wrapper
  215. -D LORA_TX_POWER=22
  216. -D MAX_CONTACTS=100
  217. -D MAX_GROUP_CHANNELS=1
  218. ; -D MESH_PACKET_LOGGING=1
  219. ; -D MESH_DEBUG=1
  220. build_src_filter = ${Meshadventurer.build_src_filter}
  221. +<../examples/simple_secure_chat/main.cpp>
  222. lib_deps =
  223. ${Meshadventurer.lib_deps}
  224. densaugeo/base64 @ ~1.4.0
  225. [env:Meshadventurer_sx1262_room_server]
  226. extends = Meshadventurer
  227. build_flags =
  228. ${Meshadventurer.build_flags}
  229. -D RADIO_CLASS=CustomSX1262
  230. -D WRAPPER_CLASS=CustomSX1262Wrapper
  231. -D LORA_TX_POWER=22
  232. -D ADVERT_NAME='"Meshadventurer Room"'
  233. -D ADVERT_LAT=0.0
  234. -D ADVERT_LON=0.0
  235. -D ADMIN_PASSWORD='"password"'
  236. -D ROOM_PASSWORD='"hello"'
  237. ; -D MESH_PACKET_LOGGING=1
  238. ; -D MESH_DEBUG=1
  239. build_src_filter = ${Meshadventurer.build_src_filter}
  240. +<../examples/simple_room_server>
  241. lib_deps =
  242. ${Meshadventurer.lib_deps}
  243. ${esp32_ota.lib_deps}
  244. [env:Meshadventurer_sx1268_companion_radio_usb]
  245. extends = Meshadventurer
  246. build_src_filter = ${Meshadventurer.build_src_filter}
  247. +<../examples/companion_radio/*.cpp>
  248. +<../examples/companion_radio/ui-new/*.cpp>
  249. build_flags =
  250. ${Meshadventurer.build_flags}
  251. -I examples/companion_radio/ui-new
  252. -D RADIO_CLASS=CustomSX1268
  253. -D WRAPPER_CLASS=CustomSX1268Wrapper
  254. -D LORA_TX_POWER=22
  255. -D MAX_CONTACTS=160
  256. -D OFFLINE_QUEUE_SIZE=128
  257. -D MAX_GROUP_CHANNELS=40
  258. ; -D MESH_PACKET_LOGGING=1
  259. ; -D MESH_DEBUG=1
  260. lib_deps =
  261. ${Meshadventurer.lib_deps}
  262. densaugeo/base64 @ ~1.4.0
  263. [env:Meshadventurer_sx1268_companion_radio_ble]
  264. extends = Meshadventurer
  265. build_src_filter = ${Meshadventurer.build_src_filter}
  266. +<helpers/esp32/*.cpp>
  267. +<../examples/companion_radio/*.cpp>
  268. +<../examples/companion_radio/ui-new/*.cpp>
  269. build_flags =
  270. ${Meshadventurer.build_flags}
  271. -I examples/companion_radio/ui-new
  272. -D RADIO_CLASS=CustomSX1268
  273. -D WRAPPER_CLASS=CustomSX1268Wrapper
  274. -D LORA_TX_POWER=22
  275. -D MAX_CONTACTS=160
  276. -D MAX_GROUP_CHANNELS=40
  277. -D BLE_PIN_CODE=123456
  278. -D BLE_DEBUG_LOGGING=1
  279. -D OFFLINE_QUEUE_SIZE=128
  280. -D MESH_PACKET_LOGGING=1
  281. -D MESH_DEBUG=1
  282. lib_deps =
  283. ${Meshadventurer.lib_deps}
  284. densaugeo/base64 @ ~1.4.0
  285. [env:Meshadventurer_sx1268_terminal_chat]
  286. extends = Meshadventurer
  287. build_flags =
  288. ${Meshadventurer.build_flags}
  289. -D RADIO_CLASS=CustomSX1268
  290. -D WRAPPER_CLASS=CustomSX1268Wrapper
  291. -D LORA_TX_POWER=22
  292. -D MAX_CONTACTS=100
  293. -D MAX_GROUP_CHANNELS=1
  294. ; -D MESH_PACKET_LOGGING=1
  295. ; -D MESH_DEBUG=1
  296. build_src_filter = ${Meshadventurer.build_src_filter}
  297. +<../examples/simple_secure_chat/main.cpp>
  298. lib_deps =
  299. ${Meshadventurer.lib_deps}
  300. densaugeo/base64 @ ~1.4.0
  301. [env:Meshadventurer_sx1268_room_server]
  302. extends = Meshadventurer
  303. build_flags =
  304. ${Meshadventurer.build_flags}
  305. -D RADIO_CLASS=CustomSX1268
  306. -D WRAPPER_CLASS=CustomSX1268Wrapper
  307. -D LORA_TX_POWER=22
  308. -D ADVERT_NAME='"Meshadventurer Room"'
  309. -D ADVERT_LAT=0.0
  310. -D ADVERT_LON=0.0
  311. -D ADMIN_PASSWORD='"password"'
  312. -D ROOM_PASSWORD='"hello"'
  313. ; -D MESH_PACKET_LOGGING=1
  314. ; -D MESH_DEBUG=1
  315. build_src_filter = ${Meshadventurer.build_src_filter}
  316. +<../examples/simple_room_server>
  317. lib_deps =
  318. ${Meshadventurer.lib_deps}
  319. ${esp32_ota.lib_deps}
  320. [env:Meshadventurer_sx1262_kiss_modem]
  321. extends = Meshadventurer
  322. build_src_filter = ${Meshadventurer.build_src_filter}
  323. +<../examples/kiss_modem/>
  324. build_flags = ${Meshadventurer.build_flags}
  325. -D RADIO_CLASS=CustomSX1262
  326. -D WRAPPER_CLASS=CustomSX1262Wrapper
  327. -D LORA_TX_POWER=22
  328. [env:Meshadventurer_sx1268_kiss_modem]
  329. extends = Meshadventurer
  330. build_src_filter = ${Meshadventurer.build_src_filter}
  331. +<../examples/kiss_modem/>
  332. build_flags = ${Meshadventurer.build_flags}
  333. -D RADIO_CLASS=CustomSX1268
  334. -D WRAPPER_CLASS=CustomSX1268Wrapper
  335. -D LORA_TX_POWER=22