platformio.ini 9.5 KB

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