platformio.ini 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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=100
  180. -D MAX_GROUP_CHANNELS=40
  181. ; -D MESH_PACKET_LOGGING=1
  182. ; -D MESH_DEBUG=1
  183. lib_deps =
  184. ${Meshadventurer.lib_deps}
  185. densaugeo/base64 @ ~1.4.0
  186. [env:Meshadventurer_sx1262_companion_radio_ble]
  187. extends = Meshadventurer
  188. build_src_filter = ${Meshadventurer.build_src_filter}
  189. +<helpers/esp32/*.cpp>
  190. +<../examples/companion_radio/*.cpp>
  191. +<../examples/companion_radio/ui-new/*.cpp>
  192. build_flags =
  193. ${Meshadventurer.build_flags}
  194. -I examples/companion_radio/ui-new
  195. -D RADIO_CLASS=CustomSX1262
  196. -D WRAPPER_CLASS=CustomSX1262Wrapper
  197. -D LORA_TX_POWER=22
  198. -D MAX_CONTACTS=100
  199. -D MAX_GROUP_CHANNELS=40
  200. -D BLE_PIN_CODE=123456
  201. -D BLE_DEBUG_LOGGING=1
  202. -D OFFLINE_QUEUE_SIZE=256
  203. -D MESH_PACKET_LOGGING=1
  204. -D MESH_DEBUG=1
  205. lib_deps =
  206. ${Meshadventurer.lib_deps}
  207. densaugeo/base64 @ ~1.4.0
  208. [env:Meshadventurer_sx1262_terminal_chat]
  209. extends = Meshadventurer
  210. build_flags =
  211. ${Meshadventurer.build_flags}
  212. -D RADIO_CLASS=CustomSX1262
  213. -D WRAPPER_CLASS=CustomSX1262Wrapper
  214. -D LORA_TX_POWER=22
  215. -D MAX_CONTACTS=100
  216. -D MAX_GROUP_CHANNELS=1
  217. ; -D MESH_PACKET_LOGGING=1
  218. ; -D MESH_DEBUG=1
  219. build_src_filter = ${Meshadventurer.build_src_filter}
  220. +<../examples/simple_secure_chat/main.cpp>
  221. lib_deps =
  222. ${Meshadventurer.lib_deps}
  223. densaugeo/base64 @ ~1.4.0
  224. [env:Meshadventurer_sx1262_room_server]
  225. extends = Meshadventurer
  226. build_flags =
  227. ${Meshadventurer.build_flags}
  228. -D RADIO_CLASS=CustomSX1262
  229. -D WRAPPER_CLASS=CustomSX1262Wrapper
  230. -D LORA_TX_POWER=22
  231. -D ADVERT_NAME='"Meshadventurer Room"'
  232. -D ADVERT_LAT=0.0
  233. -D ADVERT_LON=0.0
  234. -D ADMIN_PASSWORD='"password"'
  235. -D ROOM_PASSWORD='"hello"'
  236. ; -D MESH_PACKET_LOGGING=1
  237. ; -D MESH_DEBUG=1
  238. build_src_filter = ${Meshadventurer.build_src_filter}
  239. +<../examples/simple_room_server>
  240. lib_deps =
  241. ${Meshadventurer.lib_deps}
  242. ${esp32_ota.lib_deps}
  243. [env:Meshadventurer_sx1268_companion_radio_usb]
  244. extends = Meshadventurer
  245. build_src_filter = ${Meshadventurer.build_src_filter}
  246. +<../examples/companion_radio/*.cpp>
  247. +<../examples/companion_radio/ui-new/*.cpp>
  248. build_flags =
  249. ${Meshadventurer.build_flags}
  250. -I examples/companion_radio/ui-new
  251. -D RADIO_CLASS=CustomSX1268
  252. -D WRAPPER_CLASS=CustomSX1268Wrapper
  253. -D LORA_TX_POWER=22
  254. -D MAX_CONTACTS=100
  255. -D MAX_GROUP_CHANNELS=40
  256. ; -D MESH_PACKET_LOGGING=1
  257. ; -D MESH_DEBUG=1
  258. lib_deps =
  259. ${Meshadventurer.lib_deps}
  260. densaugeo/base64 @ ~1.4.0
  261. [env:Meshadventurer_sx1268_companion_radio_ble]
  262. extends = Meshadventurer
  263. build_src_filter = ${Meshadventurer.build_src_filter}
  264. +<helpers/esp32/*.cpp>
  265. +<../examples/companion_radio/*.cpp>
  266. +<../examples/companion_radio/ui-new/*.cpp>
  267. build_flags =
  268. ${Meshadventurer.build_flags}
  269. -I examples/companion_radio/ui-new
  270. -D RADIO_CLASS=CustomSX1268
  271. -D WRAPPER_CLASS=CustomSX1268Wrapper
  272. -D LORA_TX_POWER=22
  273. -D MAX_CONTACTS=100
  274. -D MAX_GROUP_CHANNELS=40
  275. -D BLE_PIN_CODE=123456
  276. -D BLE_DEBUG_LOGGING=1
  277. -D OFFLINE_QUEUE_SIZE=256
  278. -D MESH_PACKET_LOGGING=1
  279. -D MESH_DEBUG=1
  280. lib_deps =
  281. ${Meshadventurer.lib_deps}
  282. densaugeo/base64 @ ~1.4.0
  283. [env:Meshadventurer_sx1268_terminal_chat]
  284. extends = Meshadventurer
  285. build_flags =
  286. ${Meshadventurer.build_flags}
  287. -D RADIO_CLASS=CustomSX1268
  288. -D WRAPPER_CLASS=CustomSX1268Wrapper
  289. -D LORA_TX_POWER=22
  290. -D MAX_CONTACTS=100
  291. -D MAX_GROUP_CHANNELS=1
  292. ; -D MESH_PACKET_LOGGING=1
  293. ; -D MESH_DEBUG=1
  294. build_src_filter = ${Meshadventurer.build_src_filter}
  295. +<../examples/simple_secure_chat/main.cpp>
  296. lib_deps =
  297. ${Meshadventurer.lib_deps}
  298. densaugeo/base64 @ ~1.4.0
  299. [env:Meshadventurer_sx1268_room_server]
  300. extends = Meshadventurer
  301. build_flags =
  302. ${Meshadventurer.build_flags}
  303. -D RADIO_CLASS=CustomSX1268
  304. -D WRAPPER_CLASS=CustomSX1268Wrapper
  305. -D LORA_TX_POWER=22
  306. -D ADVERT_NAME='"Meshadventurer Room"'
  307. -D ADVERT_LAT=0.0
  308. -D ADVERT_LON=0.0
  309. -D ADMIN_PASSWORD='"password"'
  310. -D ROOM_PASSWORD='"hello"'
  311. ; -D MESH_PACKET_LOGGING=1
  312. ; -D MESH_DEBUG=1
  313. build_src_filter = ${Meshadventurer.build_src_filter}
  314. +<../examples/simple_room_server>
  315. lib_deps =
  316. ${Meshadventurer.lib_deps}
  317. ${esp32_ota.lib_deps}
  318. [env:Meshadventurer_sx1262_kiss_modem]
  319. extends = Meshadventurer
  320. build_src_filter = ${Meshadventurer.build_src_filter}
  321. +<../examples/kiss_modem/>
  322. build_flags = ${Meshadventurer.build_flags}
  323. -D RADIO_CLASS=CustomSX1262
  324. -D WRAPPER_CLASS=CustomSX1262Wrapper
  325. -D LORA_TX_POWER=22
  326. [env:Meshadventurer_sx1268_kiss_modem]
  327. extends = Meshadventurer
  328. build_src_filter = ${Meshadventurer.build_src_filter}
  329. +<../examples/kiss_modem/>
  330. build_flags = ${Meshadventurer.build_flags}
  331. -D RADIO_CLASS=CustomSX1268
  332. -D WRAPPER_CLASS=CustomSX1268Wrapper
  333. -D LORA_TX_POWER=22