platformio.ini 9.6 KB

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