platformio.ini 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170
  1. ; PlatformIO Project Configuration File
  2. ;
  3. ; Build options: build flags, source filter
  4. ; Upload options: custom upload port, speed and extra flags
  5. ; Library options: dependencies, extra library storages
  6. ; Advanced options: extra scripting
  7. ;
  8. ; Please visit documentation for the other options and examples
  9. ; https://docs.platformio.org/page/projectconf.html
  10. [arduino_base]
  11. framework = arduino
  12. monitor_speed = 115200
  13. lib_deps =
  14. SPI
  15. Wire
  16. jgromes/RadioLib @ ^7.1.2
  17. rweather/Crypto @ ^0.4.0
  18. adafruit/RTClib @ ^2.1.3
  19. melopero/Melopero RV3028 @ ^1.1.0
  20. build_flags = -w -DNDEBUG -DRADIOLIB_STATIC_ONLY=1 -DRADIOLIB_GODMODE=1
  21. -D LORA_FREQ=867.5
  22. -D LORA_BW=250
  23. -D LORA_SF=10
  24. build_src_filter =
  25. +<*.cpp>
  26. +<helpers/*.cpp>
  27. [esp32_base]
  28. extends = arduino_base
  29. platform = espressif32
  30. monitor_filters = esp32_exception_decoder
  31. extra_scripts = merge-bin.py
  32. build_flags = ${arduino_base.build_flags}
  33. ; -D ESP32_CPU_FREQ=80 ; change it to your need
  34. build_src_filter = ${arduino_base.build_src_filter}
  35. ; ================
  36. [Heltec_lora32_v2]
  37. extends = esp32_base
  38. board = heltec_wifi_lora_32_V2 ; heltec_wifi_lora_32_V2
  39. build_flags =
  40. ${esp32_base.build_flags}
  41. -D HELTEC_LORA_V2
  42. -D RADIO_CLASS=CustomSX1276
  43. -D WRAPPER_CLASS=CustomSX1276Wrapper
  44. -D LORA_TX_POWER=20
  45. -D P_LORA_TX_LED=25
  46. build_src_filter = ${esp32_base.build_src_filter}
  47. [env:Heltec_v2_repeater]
  48. extends = Heltec_lora32_v2
  49. build_flags =
  50. ${Heltec_lora32_v2.build_flags}
  51. -D ADVERT_NAME='"Heltec Repeater"'
  52. -D ADVERT_LAT=-37.0
  53. -D ADVERT_LON=145.0
  54. -D ADMIN_PASSWORD='"password"'
  55. ; -D MESH_PACKET_LOGGING=1
  56. ; -D MESH_DEBUG=1
  57. build_src_filter = ${Heltec_lora32_v2.build_src_filter}
  58. +<../examples/simple_repeater/main.cpp>
  59. [env:Heltec_v2_terminal_chat]
  60. extends = Heltec_lora32_v2
  61. build_flags =
  62. ${Heltec_lora32_v2.build_flags}
  63. -D MAX_CONTACTS=100
  64. -D MAX_GROUP_CHANNELS=1
  65. ; -D MESH_PACKET_LOGGING=1
  66. ; -D MESH_DEBUG=1
  67. build_src_filter = ${Heltec_lora32_v2.build_src_filter}
  68. +<../examples/simple_secure_chat/main.cpp>
  69. lib_deps =
  70. ${Heltec_lora32_v2.lib_deps}
  71. densaugeo/base64 @ ~1.4.0
  72. [env:Heltec_v2_companion_radio_usb]
  73. extends = Heltec_lora32_v2
  74. build_flags =
  75. ${Heltec_lora32_v2.build_flags}
  76. -D MAX_CONTACTS=100
  77. -D MAX_GROUP_CHANNELS=8
  78. ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
  79. ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
  80. build_src_filter = ${Heltec_lora32_v2.build_src_filter}
  81. +<helpers/esp32/*.cpp>
  82. +<../examples/companion_radio/main.cpp>
  83. lib_deps =
  84. ${Heltec_lora32_v2.lib_deps}
  85. densaugeo/base64 @ ~1.4.0
  86. [env:Heltec_v2_companion_radio_ble]
  87. extends = Heltec_lora32_v2
  88. build_flags =
  89. ${Heltec_lora32_v2.build_flags}
  90. -D MAX_CONTACTS=100
  91. -D MAX_GROUP_CHANNELS=8
  92. -D BLE_PIN_CODE=123456
  93. -D BLE_DEBUG_LOGGING=1
  94. ; -D ENABLE_PRIVATE_KEY_IMPORT=1
  95. ; -D ENABLE_PRIVATE_KEY_EXPORT=1
  96. ; -D MESH_PACKET_LOGGING=1
  97. ; -D MESH_DEBUG=1
  98. build_src_filter = ${Heltec_lora32_v2.build_src_filter}
  99. +<helpers/esp32/*.cpp>
  100. +<../examples/companion_radio/main.cpp>
  101. lib_deps =
  102. ${Heltec_lora32_v2.lib_deps}
  103. densaugeo/base64 @ ~1.4.0
  104. ; ================
  105. [Heltec_lora32_v3]
  106. extends = esp32_base
  107. board = esp32-s3-devkitc-1
  108. build_flags =
  109. ${esp32_base.build_flags}
  110. -D HELTEC_LORA_V3
  111. -D RADIO_CLASS=CustomSX1262
  112. -D WRAPPER_CLASS=CustomSX1262Wrapper
  113. -D LORA_TX_POWER=22
  114. -D P_LORA_TX_LED=35
  115. -D PIN_BOARD_SDA=17
  116. -D PIN_BOARD_SCL=18
  117. -D PIN_USER_BTN=0
  118. -D SX126X_DIO2_AS_RF_SWITCH=true
  119. -D SX126X_DIO3_TCXO_VOLTAGE=1.8
  120. -D SX126X_CURRENT_LIMIT=130.0f ; for best TX power!
  121. -D SX126X_RX_BOOSTED_GAIN=1
  122. build_src_filter = ${esp32_base.build_src_filter}
  123. lib_deps =
  124. ${esp32_base.lib_deps}
  125. adafruit/Adafruit SSD1306 @ ^2.5.13
  126. [env:Heltec_v3_repeater]
  127. extends = Heltec_lora32_v3
  128. build_flags =
  129. ${Heltec_lora32_v3.build_flags}
  130. -D DISPLAY_CLASS=SSD1306Display
  131. -D ADVERT_NAME='"Heltec Repeater"'
  132. -D ADVERT_LAT=-37.0
  133. -D ADVERT_LON=145.0
  134. -D ADMIN_PASSWORD='"password"'
  135. -D MESH_PACKET_LOGGING=1
  136. ; -D MESH_DEBUG=1
  137. build_src_filter = ${Heltec_lora32_v3.build_src_filter}
  138. +<helpers/ui/*.cpp>
  139. +<../examples/simple_repeater>
  140. [env:Heltec_v3_room_server]
  141. extends = Heltec_lora32_v3
  142. build_flags =
  143. ${Heltec_lora32_v3.build_flags}
  144. -D DISPLAY_CLASS=SSD1306Display
  145. -D ADVERT_NAME='"Heltec Room"'
  146. -D ADVERT_LAT=-37.0
  147. -D ADVERT_LON=145.0
  148. -D ADMIN_PASSWORD='"password"'
  149. -D ROOM_PASSWORD='"hello"'
  150. ; -D MESH_PACKET_LOGGING=1
  151. ; -D MESH_DEBUG=1
  152. build_src_filter = ${Heltec_lora32_v3.build_src_filter}
  153. +<helpers/ui/*.cpp>
  154. +<../examples/simple_room_server>
  155. [env:Heltec_v3_terminal_chat]
  156. extends = Heltec_lora32_v3
  157. build_flags =
  158. ${Heltec_lora32_v3.build_flags}
  159. -D MAX_CONTACTS=100
  160. -D MAX_GROUP_CHANNELS=1
  161. ; -D MESH_PACKET_LOGGING=1
  162. ; -D MESH_DEBUG=1
  163. build_src_filter = ${Heltec_lora32_v3.build_src_filter}
  164. +<../examples/simple_secure_chat/main.cpp>
  165. lib_deps =
  166. ${Heltec_lora32_v3.lib_deps}
  167. densaugeo/base64 @ ~1.4.0
  168. [env:Heltec_v3_companion_radio_usb]
  169. extends = Heltec_lora32_v3
  170. build_flags =
  171. ${Heltec_lora32_v3.build_flags}
  172. -D MAX_CONTACTS=100
  173. -D MAX_GROUP_CHANNELS=8
  174. -D DISPLAY_CLASS=SSD1306Display
  175. ; -D ENABLE_PRIVATE_KEY_IMPORT=1
  176. ; -D ENABLE_PRIVATE_KEY_EXPORT=1
  177. ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
  178. ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
  179. build_src_filter = ${Heltec_lora32_v3.build_src_filter}
  180. +<helpers/ui/*.cpp>
  181. +<../examples/companion_radio>
  182. lib_deps =
  183. ${Heltec_lora32_v3.lib_deps}
  184. densaugeo/base64 @ ~1.4.0
  185. [env:Heltec_v3_companion_radio_ble]
  186. extends = Heltec_lora32_v3
  187. build_flags =
  188. ${Heltec_lora32_v3.build_flags}
  189. -D MAX_CONTACTS=100
  190. -D MAX_GROUP_CHANNELS=8
  191. -D DISPLAY_CLASS=SSD1306Display
  192. -D BLE_PIN_CODE=0 ; dynamic, random PIN
  193. -D BLE_DEBUG_LOGGING=1
  194. ; -D ENABLE_PRIVATE_KEY_IMPORT=1
  195. ; -D ENABLE_PRIVATE_KEY_EXPORT=1
  196. ; -D MESH_PACKET_LOGGING=1
  197. ; -D MESH_DEBUG=1
  198. build_src_filter = ${Heltec_lora32_v3.build_src_filter}
  199. +<helpers/ui/*.cpp>
  200. +<helpers/esp32/*.cpp>
  201. +<../examples/companion_radio>
  202. lib_deps =
  203. ${Heltec_lora32_v3.lib_deps}
  204. densaugeo/base64 @ ~1.4.0
  205. [env:Heltec_v3_companion_radio_wifi]
  206. extends = Heltec_lora32_v3
  207. build_flags =
  208. ${Heltec_lora32_v3.build_flags}
  209. -D MAX_CONTACTS=100
  210. -D MAX_GROUP_CHANNELS=8
  211. -D DISPLAY_CLASS=SSD1306Display
  212. -D WIFI_DEBUG_LOGGING=1
  213. -D WIFI_SSID='"myssid"'
  214. -D WIFI_PWD='"mypwd"'
  215. ; -D ENABLE_PRIVATE_KEY_IMPORT=1
  216. ; -D ENABLE_PRIVATE_KEY_EXPORT=1
  217. ; -D MESH_PACKET_LOGGING=1
  218. ; -D MESH_DEBUG=1
  219. build_src_filter = ${Heltec_lora32_v3.build_src_filter}
  220. +<helpers/ui/*.cpp>
  221. +<helpers/esp32/*.cpp>
  222. +<../examples/companion_radio>
  223. lib_deps =
  224. ${Heltec_lora32_v3.lib_deps}
  225. densaugeo/base64 @ ~1.4.0
  226. [env:Heltec_WSL3_repeater]
  227. extends = Heltec_lora32_v3
  228. build_flags =
  229. ${Heltec_lora32_v3.build_flags}
  230. -D ADVERT_NAME='"Heltec Repeater"'
  231. -D ADVERT_LAT=-37.0
  232. -D ADVERT_LON=145.0
  233. -D ADMIN_PASSWORD='"password"'
  234. -D MESH_PACKET_LOGGING=1
  235. ; -D MESH_DEBUG=1
  236. build_src_filter = ${Heltec_lora32_v3.build_src_filter}
  237. +<../examples/simple_repeater>
  238. [env:Heltec_WSL3_room_server]
  239. extends = Heltec_lora32_v3
  240. build_src_filter = ${Heltec_lora32_v3.build_src_filter}
  241. +<../examples/simple_room_server>
  242. build_flags =
  243. ${Heltec_lora32_v3.build_flags}
  244. -D ADVERT_NAME='"Heltec Room"'
  245. -D ADVERT_LAT=-37.0
  246. -D ADVERT_LON=145.0
  247. -D ADMIN_PASSWORD='"password"'
  248. -D ROOM_PASSWORD='"hello"'
  249. ; -D MESH_PACKET_LOGGING=1
  250. ; -D MESH_DEBUG=1
  251. [env:Heltec_WSL3_companion_radio_ble]
  252. extends = Heltec_lora32_v3
  253. build_flags =
  254. ${Heltec_lora32_v3.build_flags}
  255. -D MAX_CONTACTS=100
  256. -D MAX_GROUP_CHANNELS=8
  257. -D BLE_PIN_CODE=123456
  258. -D BLE_DEBUG_LOGGING=1
  259. ; -D ENABLE_PRIVATE_KEY_IMPORT=1
  260. ; -D ENABLE_PRIVATE_KEY_EXPORT=1
  261. ; -D MESH_PACKET_LOGGING=1
  262. ; -D MESH_DEBUG=1
  263. build_src_filter = ${Heltec_lora32_v3.build_src_filter}
  264. +<helpers/esp32/*.cpp>
  265. +<../examples/companion_radio>
  266. lib_deps =
  267. ${Heltec_lora32_v3.lib_deps}
  268. densaugeo/base64 @ ~1.4.0
  269. ; ================
  270. [Xiao_esp32_C3]
  271. extends = esp32_base
  272. board = seeed_xiao_esp32c3
  273. build_flags =
  274. ${esp32_base.build_flags}
  275. -D LORA_TX_BOOST_PIN=D3
  276. -D P_LORA_TX_LED=D5
  277. -D PIN_VBAT_READ=D0
  278. -D P_LORA_DIO_1=D2
  279. -D P_LORA_NSS=D4
  280. -D P_LORA_RESET=RADIOLIB_NC
  281. -D P_LORA_BUSY=D1
  282. -D PIN_BOARD_SDA=D6
  283. -D PIN_BOARD_SCL=D7
  284. -D SX126X_DIO2_AS_RF_SWITCH=true
  285. -D SX126X_DIO3_TCXO_VOLTAGE=1.8
  286. -D SX126X_CURRENT_LIMIT=130.0f ; for best TX power!
  287. [env:Xiao_C3_Repeater_sx1262]
  288. extends = Xiao_esp32_C3
  289. build_src_filter = ${Xiao_esp32_C3.build_src_filter}
  290. +<../examples/simple_repeater/main.cpp>
  291. build_flags =
  292. ${Xiao_esp32_C3.build_flags}
  293. -D RADIO_CLASS=CustomSX1262
  294. -D WRAPPER_CLASS=CustomSX1262Wrapper
  295. -D SX126X_RX_BOOSTED_GAIN=1
  296. -D LORA_TX_POWER=22
  297. -D ADVERT_NAME='"Xiao Repeater"'
  298. -D ADVERT_LAT=-37.0
  299. -D ADVERT_LON=145.0
  300. -D ADMIN_PASSWORD='"password"'
  301. ; -D MESH_PACKET_LOGGING=1
  302. ; -D MESH_DEBUG=1
  303. [env:Xiao_C3_Repeater_sx1268]
  304. extends = Xiao_esp32_C3
  305. build_src_filter = ${Xiao_esp32_C3.build_src_filter}
  306. +<../examples/simple_repeater/main.cpp>
  307. build_flags =
  308. ${Xiao_esp32_C3.build_flags}
  309. -D RADIO_CLASS=CustomSX1268
  310. -D WRAPPER_CLASS=CustomSX1268Wrapper
  311. -D LORA_TX_POWER=22
  312. -D ADVERT_NAME='"Xiao Repeater"'
  313. -D ADVERT_LAT=-37.0
  314. -D ADVERT_LON=145.0
  315. -D ADMIN_PASSWORD='"password"'
  316. ; -D MESH_PACKET_LOGGING=1
  317. ; -D MESH_DEBUG=1
  318. ; =============
  319. [Xiao_S3_WIO]
  320. extends = esp32_base
  321. board = seeed_xiao_esp32s3
  322. board_check = true
  323. board_build.mcu = esp32s3
  324. build_flags = ${esp32_base.build_flags}
  325. -D SEEED_XIAO_S3
  326. -D P_LORA_DIO_1=39
  327. -D P_LORA_NSS=41
  328. -D P_LORA_RESET=42 ; RADIOLIB_NC
  329. -D P_LORA_BUSY=40 ; DIO2 = 38
  330. -D P_LORA_SCLK=7
  331. -D P_LORA_MISO=8
  332. -D P_LORA_MOSI=9
  333. -D SX126X_DIO2_AS_RF_SWITCH=true
  334. -D SX126X_DIO3_TCXO_VOLTAGE=1.8
  335. -D SX126X_CURRENT_LIMIT=130
  336. -D RADIO_CLASS=CustomSX1262
  337. -D WRAPPER_CLASS=CustomSX1262Wrapper
  338. -D LORA_TX_POWER=22
  339. -D SX126X_RX_BOOSTED_GAIN=1
  340. [env:Xiao_S3_WIO_Repeater]
  341. extends = Xiao_S3_WIO
  342. build_src_filter = ${Xiao_S3_WIO.build_src_filter}
  343. +<../examples/simple_repeater/main.cpp>
  344. build_flags =
  345. ${Xiao_S3_WIO.build_flags}
  346. -D ADVERT_NAME='"XiaoS3 Repeater"'
  347. -D ADVERT_LAT=-37.0
  348. -D ADVERT_LON=145.0
  349. -D ADMIN_PASSWORD='"password"'
  350. ; -D MESH_PACKET_LOGGING=1
  351. ; -D MESH_DEBUG=1
  352. [env:Xiao_S3_WIO_terminal_chat]
  353. extends = Xiao_S3_WIO
  354. build_flags =
  355. ${Xiao_S3_WIO.build_flags}
  356. -D MAX_CONTACTS=100
  357. -D MAX_GROUP_CHANNELS=8
  358. ; -D MESH_PACKET_LOGGING=1
  359. ; -D MESH_DEBUG=1
  360. build_src_filter = ${Xiao_S3_WIO.build_src_filter}
  361. +<../examples/simple_secure_chat/main.cpp>
  362. lib_deps =
  363. ${Xiao_S3_WIO.lib_deps}
  364. densaugeo/base64 @ ~1.4.0
  365. [env:Xiao_S3_WIO_companion_radio_ble]
  366. extends = Xiao_S3_WIO
  367. build_flags =
  368. ${Xiao_S3_WIO.build_flags}
  369. -D MAX_CONTACTS=100
  370. -D MAX_GROUP_CHANNELS=8
  371. -D BLE_PIN_CODE=123456
  372. ; -D BLE_DEBUG_LOGGING=1
  373. ; -D ENABLE_PRIVATE_KEY_IMPORT=1
  374. ; -D ENABLE_PRIVATE_KEY_EXPORT=1
  375. ; -D MESH_PACKET_LOGGING=1
  376. ; -D MESH_DEBUG=1
  377. build_src_filter = ${Xiao_S3_WIO.build_src_filter}
  378. +<helpers/esp32/*.cpp>
  379. +<../examples/companion_radio/main.cpp>
  380. lib_deps =
  381. ${Xiao_S3_WIO.lib_deps}
  382. densaugeo/base64 @ ~1.4.0
  383. ; =============
  384. [LilyGo_TLora_V2_1_1_6]
  385. extends = esp32_base
  386. board = ttgo-lora32-v1 ; LILYGO T-LoRa V2.1-1.6 ESP32 with SX1276
  387. build_unflags = -Os
  388. build_type = release ; Set build type to release
  389. board_build.partitions = min_spiffs.csv ; get around 4mb flash limit
  390. build_flags =
  391. ${esp32_base.build_flags}
  392. -Os -ffunction-sections -fdata-sections ; Optimize for size
  393. -D LILYGO_TLORA ; LILYGO T-LoRa V2.1-1.6 ESP32 with SX1276
  394. -D P_LORA_DIO_0=26 ; SX1276 DIO0 interrupt pin
  395. -D P_LORA_DIO_1=33 ; SX1276 DIO1 interrupt pin
  396. -D P_LORA_NSS=18 ; Chip select - SS pin
  397. -D P_LORA_RESET=14 ; Reset pin
  398. -D P_LORA_SCLK=5 ; SPI clock
  399. -D P_LORA_MISO=19 ; SPI MISO
  400. -D P_LORA_MOSI=27 ; SPI MOSI
  401. -D P_LORA_TX_LED=2 ; LED pin for TX indication
  402. -D PIN_VBAT_READ=35 ; Battery voltage reading (analog pin)
  403. -D PIN_USER_BTN=0
  404. -D RADIO_CLASS=CustomSX1276
  405. -D ARDUINO_LOOP_STACK_SIZE=16384
  406. -D DISPLAY_CLASS=SSD1306Display
  407. -D WRAPPER_CLASS=CustomSX1276Wrapper
  408. -D LORA_TX_POWER=20
  409. lib_deps =
  410. ${esp32_base.lib_deps}
  411. adafruit/Adafruit SSD1306 @ ^2.5.13
  412. ; === LILYGO T-LoRa V2.1-1.6 with SX1276 environments ===
  413. [env:LilyGo_TLora_V2_1_1_6_Repeater]
  414. extends = LilyGo_TLora_V2_1_1_6
  415. build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
  416. +<helpers/ui/*.cpp>
  417. +<../examples/simple_repeater>
  418. build_flags =
  419. ${LilyGo_TLora_V2_1_1_6.build_flags}
  420. -D ADVERT_NAME='"TLora-V2.1-1.6 Repeater"'
  421. -D ADVERT_LAT=-37.0
  422. -D ADVERT_LON=145.0
  423. -D ADMIN_PASSWORD='"password"'
  424. ; -D MESH_PACKET_LOGGING=1
  425. ; -D MESH_DEBUG=1
  426. ; -D CORE_DEBUG_LEVEL=3
  427. [env:LilyGo_TLora_V2_1_1_6_terminal_chat]
  428. extends = LilyGo_TLora_V2_1_1_6
  429. build_flags =
  430. ${LilyGo_TLora_V2_1_1_6.build_flags}
  431. -D MAX_CONTACTS=100
  432. -D MAX_GROUP_CHANNELS=8
  433. ; -D MESH_PACKET_LOGGING=1
  434. ; -D MESH_DEBUG=1
  435. build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
  436. +<helpers/ui/*.cpp>
  437. +<../examples/simple_repeater>
  438. lib_deps =
  439. ${LilyGo_TLora_V2_1_1_6.lib_deps}
  440. densaugeo/base64 @ ~1.4.0
  441. [env:LilyGo_TLora_V2_1_1_6_companion_radio_usb]
  442. extends = LilyGo_TLora_V2_1_1_6
  443. build_flags =
  444. ${LilyGo_TLora_V2_1_1_6.build_flags}
  445. -D MAX_CONTACTS=100
  446. -D MAX_GROUP_CHANNELS=8
  447. ; -D ENABLE_PRIVATE_KEY_IMPORT=1
  448. ; -D ENABLE_PRIVATE_KEY_EXPORT=1
  449. ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
  450. ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
  451. build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
  452. +<helpers/ui/*.cpp>
  453. +<../examples/companion_radio>
  454. lib_deps =
  455. ${LilyGo_TLora_V2_1_1_6.lib_deps}
  456. densaugeo/base64 @ ~1.4.0
  457. [env:LilyGo_TLora_V2_1_1_6_companion_radio_ble]
  458. extends = LilyGo_TLora_V2_1_1_6
  459. build_flags =
  460. ${LilyGo_TLora_V2_1_1_6.build_flags}
  461. -D MAX_CONTACTS=100
  462. -D MAX_GROUP_CHANNELS=8
  463. -D BLE_PIN_CODE=123456
  464. ; -D BLE_DEBUG_LOGGING=1
  465. ; -D ENABLE_PRIVATE_KEY_IMPORT=1
  466. ; -D ENABLE_PRIVATE_KEY_EXPORT=1
  467. ; -D MESH_PACKET_LOGGING=1
  468. ; -D MESH_DEBUG=1
  469. build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
  470. +<helpers/esp32/*.cpp>
  471. +<helpers/ui/*.cpp>
  472. +<../examples/companion_radio>
  473. lib_deps =
  474. ${LilyGo_TLora_V2_1_1_6.lib_deps}
  475. densaugeo/base64 @ ~1.4.0
  476. [env:LilyGo_TLora_V2_1_1_6_room_server]
  477. extends = LilyGo_TLora_V2_1_1_6
  478. build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
  479. +<helpers/ui/*.cpp>
  480. +<../examples/simple_room_server>
  481. build_flags =
  482. ${LilyGo_TLora_V2_1_1_6.build_flags}
  483. -D ADVERT_NAME='"TLora-V2.1-1.6 Room"'
  484. -D ADVERT_LAT=-37.0
  485. -D ADVERT_LON=145.0
  486. -D ADMIN_PASSWORD='"password"'
  487. -D ROOM_PASSWORD='"hello"'
  488. ; -D MESH_PACKET_LOGGING=1
  489. ; -D MESH_DEBUG=1
  490. ; =============
  491. [LilyGo_T3S3_sx1262]
  492. extends = esp32_base
  493. board = t3_s3_v1_x
  494. build_flags =
  495. ${esp32_base.build_flags}
  496. -D LILYGO_T3S3
  497. -D P_LORA_DIO_1=33
  498. -D P_LORA_NSS=7
  499. -D P_LORA_RESET=8 ; RADIOLIB_NC
  500. -D P_LORA_BUSY=34
  501. -D P_LORA_SCLK=5
  502. -D P_LORA_MISO=3
  503. -D P_LORA_MOSI=6
  504. -D P_LORA_TX_LED=37
  505. -D PIN_VBAT_READ=1
  506. -D PIN_USER_BTN=0
  507. -D PIN_BOARD_SDA=18
  508. -D PIN_BOARD_SCL=17
  509. -D P_LORA_TX_LED=37
  510. -D PIN_OLED_RESET=21
  511. -D SX126X_DIO2_AS_RF_SWITCH=true
  512. -D SX126X_DIO3_TCXO_VOLTAGE=1.8
  513. -D SX126X_CURRENT_LIMIT=130
  514. -D RADIO_CLASS=CustomSX1262
  515. -D WRAPPER_CLASS=CustomSX1262Wrapper
  516. -D LORA_TX_POWER=22
  517. -D SX126X_RX_BOOSTED_GAIN=1
  518. build_src_filter = ${esp32_base.build_src_filter}
  519. lib_deps =
  520. ${esp32_base.lib_deps}
  521. adafruit/Adafruit SSD1306 @ ^2.5.13
  522. ; === LilyGo T3S3 with SX1262 environments ===
  523. [env:LilyGo_T3S3_sx1262_Repeater]
  524. extends = LilyGo_T3S3_sx1262
  525. build_flags =
  526. ${LilyGo_T3S3_sx1262.build_flags}
  527. -D DISPLAY_CLASS=SSD1306Display
  528. -D ADVERT_NAME='"T3S3-1262 Repeater"'
  529. -D ADVERT_LAT=-37.0
  530. -D ADVERT_LON=145.0
  531. -D ADMIN_PASSWORD='"password"'
  532. ; -D MESH_PACKET_LOGGING=1
  533. ; -D MESH_DEBUG=1
  534. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  535. +<helpers/ui/*.cpp>
  536. +<../examples/simple_repeater>
  537. [env:LilyGo_T3S3_sx1262_terminal_chat]
  538. extends = LilyGo_T3S3_sx1262
  539. build_flags =
  540. ${LilyGo_T3S3_sx1262.build_flags}
  541. -D MAX_CONTACTS=100
  542. -D MAX_GROUP_CHANNELS=1
  543. ; -D MESH_PACKET_LOGGING=1
  544. ; -D MESH_DEBUG=1
  545. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  546. +<../examples/simple_secure_chat/main.cpp>
  547. lib_deps =
  548. ${LilyGo_T3S3_sx1262.lib_deps}
  549. densaugeo/base64 @ ~1.4.0
  550. [env:LilyGo_T3S3_sx1262_room_server]
  551. extends = LilyGo_T3S3_sx1262
  552. build_flags =
  553. ${LilyGo_T3S3_sx1262.build_flags}
  554. -D DISPLAY_CLASS=SSD1306Display
  555. -D ADVERT_NAME='"T3S3-1262 Room"'
  556. -D ADVERT_LAT=-37.0
  557. -D ADVERT_LON=145.0
  558. -D ADMIN_PASSWORD='"password"'
  559. -D ROOM_PASSWORD='"hello"'
  560. ; -D MESH_PACKET_LOGGING=1
  561. ; -D MESH_DEBUG=1
  562. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  563. +<helpers/ui/*.cpp>
  564. +<../examples/simple_room_server>
  565. [env:LilyGo_T3S3_sx1262_companion_radio_usb]
  566. extends = LilyGo_T3S3_sx1262
  567. build_flags =
  568. ${LilyGo_T3S3_sx1262.build_flags}
  569. -D DISPLAY_CLASS=SSD1306Display
  570. -D MAX_CONTACTS=100
  571. -D MAX_GROUP_CHANNELS=8
  572. ; -D ENABLE_PRIVATE_KEY_IMPORT=1
  573. ; -D ENABLE_PRIVATE_KEY_EXPORT=1
  574. ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
  575. ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
  576. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  577. +<helpers/ui/*.cpp>
  578. +<../examples/companion_radio>
  579. lib_deps =
  580. ${LilyGo_T3S3_sx1262.lib_deps}
  581. densaugeo/base64 @ ~1.4.0
  582. [env:LilyGo_T3S3_sx1262_companion_radio_ble]
  583. extends = LilyGo_T3S3_sx1262
  584. build_flags =
  585. ${LilyGo_T3S3_sx1262.build_flags}
  586. -D DISPLAY_CLASS=SSD1306Display
  587. -D MAX_CONTACTS=100
  588. -D MAX_GROUP_CHANNELS=8
  589. -D BLE_PIN_CODE=123456
  590. -D BLE_DEBUG_LOGGING=1
  591. ; -D ENABLE_PRIVATE_KEY_IMPORT=1
  592. ; -D ENABLE_PRIVATE_KEY_EXPORT=1
  593. ; -D MESH_PACKET_LOGGING=1
  594. ; -D MESH_DEBUG=1
  595. build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
  596. +<helpers/esp32/*.cpp>
  597. +<helpers/ui/*.cpp>
  598. +<../examples/companion_radio>
  599. lib_deps =
  600. ${LilyGo_T3S3_sx1262.lib_deps}
  601. densaugeo/base64 @ ~1.4.0
  602. [Station_G2]
  603. extends = esp32_base
  604. board = station-g2
  605. build_flags =
  606. ${esp32_base.build_flags}
  607. -D STATION_G2
  608. -D RADIO_CLASS=CustomSX1262
  609. -D WRAPPER_CLASS=CustomSX1262Wrapper
  610. -D LORA_TX_POWER=7
  611. ; -D P_LORA_TX_LED=35
  612. ; -D PIN_BOARD_SDA=5
  613. ; -D PIN_BOARD_SCL=6
  614. -D PIN_USER_BTN=0
  615. -D SX126X_DIO2_AS_RF_SWITCH=true
  616. -D SX126X_DIO3_TCXO_VOLTAGE=1.8
  617. -D SX126X_CURRENT_LIMIT=130.0f ; for best TX power!
  618. ; -D SX126X_RX_BOOSTED_GAIN=1 - DO NOT ENABLE THIS!
  619. ; https://wiki.uniteng.com/en/meshtastic/station-g2#impact-of-lora-node-dense-areashigh-noise-environments-on-rf-performance
  620. build_src_filter = ${esp32_base.build_src_filter}
  621. lib_deps =
  622. ${esp32_base.lib_deps}
  623. [env:Station_G2_repeater]
  624. extends = Station_G2
  625. build_flags =
  626. ${Station_G2.build_flags}
  627. -D ADVERT_NAME='"Station G2 Repeater"'
  628. -D ADVERT_LAT=-37.0
  629. -D ADVERT_LON=145.0
  630. -D ADMIN_PASSWORD='"password"'
  631. -D MESH_PACKET_LOGGING=1
  632. ; -D MESH_DEBUG=1
  633. build_src_filter = ${Station_G2.build_src_filter}
  634. +<../examples/simple_repeater>
  635. [env:Station_G2_room_server]
  636. extends = Station_G2
  637. build_src_filter = ${Station_G2.build_src_filter}
  638. +<../examples/simple_room_server>
  639. build_flags =
  640. ${Station_G2.build_flags}
  641. -D ADVERT_NAME='"Station G2 Room"'
  642. -D ADVERT_LAT=-37.0
  643. -D ADVERT_LON=145.0
  644. -D ADMIN_PASSWORD='"password"'
  645. -D ROOM_PASSWORD='"hello"'
  646. ; -D MESH_PACKET_LOGGING=1
  647. ; -D MESH_DEBUG=1
  648. ; ----------------- NRF52 ---------------------
  649. [nrf52_base]
  650. extends = arduino_base
  651. platform = nordicnrf52
  652. build_flags = ${arduino_base.build_flags}
  653. -D NRF52_PLATFORM
  654. [nrf52840_base]
  655. extends = nrf52_base
  656. build_flags = ${nrf52_base.build_flags}
  657. lib_deps =
  658. ${nrf52_base.lib_deps}
  659. rweather/Crypto @ ^0.4.0
  660. https://github.com/adafruit/Adafruit_nRF52_Arduino
  661. [rak4631]
  662. extends = nrf52840_base
  663. platform = https://github.com/maxgerhardt/platform-nordicnrf52.git#rak
  664. board = wiscore_rak4631
  665. board_check = true
  666. build_src_filter = ${nrf52840_base.build_src_filter}
  667. +<helpers/nrf52/*.cpp>
  668. build_flags = ${nrf52840_base.build_flags}
  669. -D RAK_4631
  670. -D RADIO_CLASS=CustomSX1262
  671. -D WRAPPER_CLASS=CustomSX1262Wrapper
  672. -D LORA_TX_POWER=22
  673. -D SX126X_CURRENT_LIMIT=130
  674. -D SX126X_RX_BOOSTED_GAIN=1
  675. [env:RAK_4631_Repeater]
  676. extends = rak4631
  677. build_src_filter = ${rak4631.build_src_filter}
  678. +<../examples/simple_repeater/main.cpp>
  679. build_flags =
  680. ${rak4631.build_flags}
  681. -D ADVERT_NAME='"RAK4631 Repeater"'
  682. -D ADVERT_LAT=-37.0
  683. -D ADVERT_LON=145.0
  684. -D ADMIN_PASSWORD='"password"'
  685. ; -D MESH_PACKET_LOGGING=1
  686. ; -D MESH_DEBUG=1
  687. [env:RAK_4631_room_server]
  688. extends = rak4631
  689. build_src_filter = ${rak4631.build_src_filter}
  690. +<../examples/simple_room_server/main.cpp>
  691. build_flags =
  692. ${rak4631.build_flags}
  693. -D ADVERT_NAME='"Test Room"'
  694. -D ADVERT_LAT=-37.0
  695. -D ADVERT_LON=145.0
  696. -D ADMIN_PASSWORD='"password"'
  697. -D ROOM_PASSWORD='"hello"'
  698. ; -D MESH_PACKET_LOGGING=1
  699. ; -D MESH_DEBUG=1
  700. [env:RAK_4631_terminal_chat]
  701. extends = rak4631
  702. build_flags =
  703. ${rak4631.build_flags}
  704. -D MAX_CONTACTS=100
  705. -D MAX_GROUP_CHANNELS=1
  706. -D MESH_PACKET_LOGGING=1
  707. -D MESH_DEBUG=1
  708. build_src_filter = ${rak4631.build_src_filter}
  709. +<../examples/simple_secure_chat/main.cpp>
  710. lib_deps =
  711. ${rak4631.lib_deps}
  712. densaugeo/base64 @ ~1.4.0
  713. [env:RAK_4631_companion_radio_usb]
  714. extends = rak4631
  715. build_flags =
  716. ${rak4631.build_flags}
  717. -D MAX_CONTACTS=100
  718. -D MAX_GROUP_CHANNELS=8
  719. ; -D ENABLE_PRIVATE_KEY_IMPORT=1
  720. ; -D ENABLE_PRIVATE_KEY_EXPORT=1
  721. ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
  722. ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
  723. build_src_filter = ${rak4631.build_src_filter}
  724. +<../examples/companion_radio/main.cpp>
  725. lib_deps =
  726. ${rak4631.lib_deps}
  727. densaugeo/base64 @ ~1.4.0
  728. [env:RAK_4631_companion_radio_ble]
  729. extends = rak4631
  730. build_flags =
  731. ${rak4631.build_flags}
  732. -D MAX_CONTACTS=100
  733. -D MAX_GROUP_CHANNELS=8
  734. -D BLE_PIN_CODE=123456
  735. -D BLE_DEBUG_LOGGING=1
  736. ; -D ENABLE_PRIVATE_KEY_IMPORT=1
  737. ; -D ENABLE_PRIVATE_KEY_EXPORT=1
  738. ; -D MESH_PACKET_LOGGING=1
  739. ; -D MESH_DEBUG=1
  740. build_src_filter = ${rak4631.build_src_filter}
  741. +<helpers/nrf52/*.cpp>
  742. +<../examples/companion_radio/main.cpp>
  743. lib_deps =
  744. ${rak4631.lib_deps}
  745. densaugeo/base64 @ ~1.4.0
  746. ; ----------------- NRF52 T1000e---------------------
  747. [nrf52840_t1000e]
  748. extends = nrf52_base
  749. platform_packages = framework-arduinoadafruitnrf52
  750. build_flags = ${nrf52_base.build_flags}
  751. -I src/helpers/nrf52
  752. -I lib/nrf52/s140_nrf52_7.3.0_API/include
  753. -I lib/nrf52/s140_nrf52_7.3.0_API/include/nrf52
  754. lib_ignore =
  755. BluetoothOTA
  756. lvgl
  757. lib5b4
  758. lib_deps =
  759. ${nrf52_base.lib_deps}
  760. rweather/Crypto @ ^0.4.0
  761. [t1000-e]
  762. extends = nrf52840_t1000e
  763. board = tracker-t1000-e
  764. board_build.ldscript = boards/nrf52840_s140_v7.ld
  765. build_flags = ${nrf52840_t1000e.build_flags}
  766. -Ivariants/t1000-e
  767. -D T1000_E
  768. -D PIN_USER_BTN=6
  769. -D USER_BTN_PRESSED=HIGH
  770. -D PIN_STATUS_LED=24
  771. -D RADIO_CLASS=CustomLR1110
  772. -D WRAPPER_CLASS=CustomLR1110Wrapper
  773. -D MAX_LORA_TX_POWER=22
  774. build_src_filter = ${nrf52840_t1000e.build_src_filter}
  775. +<helpers/*.cpp>
  776. +<helpers/nrf52/T1000eBoard.cpp>
  777. +<../variants/t1000-e>
  778. debug_tool = jlink
  779. upload_protocol = nrfutil
  780. [env:t1000e_companion_radio_ble]
  781. extends = t1000-e
  782. build_flags = ${t1000-e.build_flags}
  783. -D MAX_CONTACTS=100
  784. -D MAX_GROUP_CHANNELS=8
  785. -D BLE_PIN_CODE=123456
  786. -D BLE_DEBUG_LOGGING=1
  787. -D MESH_PACKET_LOGGING=1
  788. -D MESH_DEBUG=1
  789. -D HAS_UI
  790. build_src_filter = ${t1000-e.build_src_filter}
  791. +<helpers/nrf52/SerialBLEInterface.cpp>
  792. +<../examples/companion_radio/*.cpp>
  793. lib_deps = ${t1000-e.lib_deps}
  794. densaugeo/base64 @ ~1.4.0
  795. [nrf52840_t114]
  796. extends = nrf52_base
  797. platform_packages = framework-arduinoadafruitnrf52
  798. build_flags = ${nrf52_base.build_flags}
  799. -I src/helpers/nrf52
  800. -I lib/nrf52/s140_nrf52_6.1.1_API/include
  801. -I lib/nrf52/s140_nrf52_6.1.1_API/include/nrf52
  802. lib_deps =
  803. ${nrf52_base.lib_deps}
  804. rweather/Crypto @ ^0.4.0
  805. [Heltec_t114]
  806. extends = nrf52840_t114
  807. board = heltec_t114
  808. board_build.ldscript = boards/nrf52840_s140_v6.ld
  809. build_flags = ${nrf52840_t114.build_flags}
  810. -Ivariants/t114
  811. -DHELTEC_T114
  812. -D P_LORA_TX_LED=35
  813. -D RADIO_CLASS=CustomSX1262
  814. -D WRAPPER_CLASS=CustomSX1262Wrapper
  815. -D LORA_TX_POWER=22
  816. -D SX126X_CURRENT_LIMIT=130
  817. -D SX126X_RX_BOOSTED_GAIN=1
  818. build_src_filter = ${nrf52840_t114.build_src_filter}
  819. +<helpers/*.cpp>
  820. +<helpers/nrf52/T114Board.cpp>
  821. +<../variants/t114>
  822. debug_tool = jlink
  823. upload_protocol = nrfutil
  824. [env:Heltec_t114_repeater]
  825. extends = Heltec_t114
  826. build_src_filter = ${Heltec_t114.build_src_filter}
  827. +<../examples/simple_repeater/main.cpp>
  828. build_flags =
  829. ${Heltec_t114.build_flags}
  830. -D ADVERT_NAME='"Heltec_T114 Repeater"'
  831. -D ADVERT_LAT=-37.0
  832. -D ADVERT_LON=145.0
  833. -D ADMIN_PASSWORD='"password"'
  834. ; -D MESH_PACKET_LOGGING=1
  835. ; -D MESH_DEBUG=1
  836. [env:Heltec_t114_room_server]
  837. extends = Heltec_t114
  838. build_src_filter = ${Heltec_t114.build_src_filter}
  839. +<../examples/simple_room_server>
  840. build_flags =
  841. ${Heltec_t114.build_flags}
  842. -D ADVERT_NAME='"Heltec_T114 Room"'
  843. -D ADVERT_LAT=-37.0
  844. -D ADVERT_LON=145.0
  845. -D ADMIN_PASSWORD='"password"'
  846. -D ROOM_PASSWORD='"hello"'
  847. ; -D MESH_PACKET_LOGGING=1
  848. ; -D MESH_DEBUG=1
  849. [env:Heltec_t114_companion_radio_ble]
  850. extends = Heltec_t114
  851. build_flags =
  852. ${Heltec_t114.build_flags}
  853. -D MAX_CONTACTS=100
  854. -D MAX_GROUP_CHANNELS=8
  855. -D BLE_PIN_CODE=123456
  856. -D BLE_DEBUG_LOGGING=1
  857. ; -D ENABLE_PRIVATE_KEY_IMPORT=1
  858. ; -D ENABLE_PRIVATE_KEY_EXPORT=1
  859. ; -D MESH_PACKET_LOGGING=1
  860. ; -D MESH_DEBUG=1
  861. build_src_filter = ${Heltec_t114.build_src_filter}
  862. +<helpers/nrf52/*.cpp>
  863. +<../examples/companion_radio/main.cpp>
  864. lib_deps =
  865. ${Heltec_t114.lib_deps}
  866. densaugeo/base64 @ ~1.4.0
  867. [nrf52840_techo]
  868. extends = nrf52_base
  869. platform_packages = framework-arduinoadafruitnrf52
  870. build_flags = ${nrf52_base.build_flags}
  871. -I src/helpers/nrf52
  872. -I lib/nrf52/s140_nrf52_6.1.1_API/include
  873. -I lib/nrf52/s140_nrf52_6.1.1_API/include/nrf52
  874. lib_deps =
  875. ${nrf52_base.lib_deps}
  876. rweather/Crypto @ ^0.4.0
  877. [LilyGo_Techo]
  878. extends = nrf52840_techo
  879. board = t-echo
  880. board_build.ldscript = boards/nrf52840_s140_v6.ld
  881. build_flags = ${nrf52840_techo.build_flags}
  882. -Ivariants/techo
  883. -DLILYGO_TECHO
  884. -D RADIO_CLASS=CustomSX1262
  885. -D WRAPPER_CLASS=CustomSX1262Wrapper
  886. -D LORA_TX_POWER=22
  887. -D SX126X_CURRENT_LIMIT=130
  888. -D SX126X_RX_BOOSTED_GAIN=1
  889. build_src_filter = ${nrf52840_techo.build_src_filter}
  890. +<helpers/*.cpp>
  891. +<helpers/nrf52/TechoBoard.cpp>
  892. +<../variants/techo>
  893. debug_tool = jlink
  894. upload_protocol = nrfutil
  895. [env:LilyGo_T-Echo_repeater]
  896. extends = LilyGo_Techo
  897. build_src_filter = ${LilyGo_Techo.build_src_filter} +<../examples/simple_repeater/main.cpp>
  898. build_flags =
  899. ${LilyGo_Techo.build_flags}
  900. -D ADVERT_NAME='"T-Echo Repeater"'
  901. -D ADVERT_LAT=-37.0
  902. -D ADVERT_LON=145.0
  903. -D ADMIN_PASSWORD='"password"'
  904. ; -D MESH_PACKET_LOGGING=1
  905. ; -D MESH_DEBUG=1
  906. [env:LilyGo_T-Echo_room_server]
  907. extends = LilyGo_Techo
  908. build_src_filter = ${LilyGo_Techo.build_src_filter} +<../examples/simple_room_server/main.cpp>
  909. build_flags =
  910. ${LilyGo_Techo.build_flags}
  911. -D ADVERT_NAME='"T-Echo Room"'
  912. -D ADVERT_LAT=-37.0
  913. -D ADVERT_LON=145.0
  914. -D ADMIN_PASSWORD='"password"'
  915. ; -D MESH_PACKET_LOGGING=1
  916. ; -D MESH_DEBUG=1
  917. [env:LilyGo_T-Echo_companion_radio_ble]
  918. extends = LilyGo_Techo
  919. build_flags =
  920. ${LilyGo_Techo.build_flags}
  921. -D MAX_CONTACTS=100
  922. -D MAX_GROUP_CHANNELS=8
  923. -D BLE_PIN_CODE=123456
  924. -D BLE_DEBUG_LOGGING=1
  925. ; -D ENABLE_PRIVATE_KEY_IMPORT=1
  926. ; -D ENABLE_PRIVATE_KEY_EXPORT=1
  927. ; -D MESH_PACKET_LOGGING=1
  928. ; -D MESH_DEBUG=1
  929. build_src_filter = ${LilyGo_Techo.build_src_filter}
  930. +<helpers/nrf52/*.cpp>
  931. +<../examples/companion_radio/main.cpp>
  932. lib_deps =
  933. ${LilyGo_Techo.lib_deps}
  934. densaugeo/base64 @ ~1.4.0
  935. [faketec]
  936. extends = nrf52840_base
  937. board = promicro_nrf52840
  938. build_src_filter = ${nrf52840_base.build_src_filter} +<helpers/nrf52/faketecBoard.cpp>
  939. build_flags = ${nrf52840_base.build_flags}
  940. -D FAKETEC
  941. -D RADIO_CLASS=CustomSX1262
  942. -D WRAPPER_CLASS=CustomSX1262Wrapper
  943. -D LORA_TX_POWER=22
  944. -D SX126X_CURRENT_LIMIT=130
  945. -D SX126X_RX_BOOSTED_GAIN=1
  946. [env:Faketec_Repeater]
  947. extends = faketec
  948. build_src_filter = ${faketec.build_src_filter} +<../examples/simple_repeater/main.cpp>
  949. build_flags =
  950. ${faketec.build_flags}
  951. -D ADVERT_NAME="\"Faketec Repeater\""
  952. -D ADVERT_LAT=-37.0
  953. -D ADVERT_LON=145.0
  954. -D ADMIN_PASSWORD="\"password\""
  955. ; -D MESH_PACKET_LOGGING=1
  956. ; -D MESH_DEBUG=1
  957. lib_deps =
  958. ${faketec.lib_deps}
  959. adafruit/RTClib @ ^2.1.3
  960. [env:Faketec_room_server]
  961. extends = faketec
  962. build_src_filter = ${faketec.build_src_filter} +<../examples/simple_room_server/main.cpp>
  963. build_flags =
  964. ${faketec.build_flags}
  965. -D ADVERT_NAME="\"Test Room\""
  966. -D ADVERT_LAT=-37.0
  967. -D ADVERT_LON=145.0
  968. -D ADMIN_PASSWORD="\"password\""
  969. -D ROOM_PASSWORD="\"hello\""
  970. ; -D MESH_PACKET_LOGGING=1
  971. ; -D MESH_DEBUG=1
  972. lib_deps =
  973. ${faketec.lib_deps}
  974. adafruit/RTClib @ ^2.1.3
  975. [env:Faketec_terminal_chat]
  976. extends = faketec
  977. build_flags =
  978. ${faketec.build_flags}
  979. -D MAX_CONTACTS=100
  980. -D MAX_GROUP_CHANNELS=1
  981. ; -D MESH_PACKET_LOGGING=1
  982. ; -D MESH_DEBUG=1
  983. build_src_filter = ${faketec.build_src_filter} +<../examples/simple_secure_chat/main.cpp>
  984. lib_deps =
  985. ${faketec.lib_deps}
  986. densaugeo/base64 @ ~1.4.0
  987. adafruit/RTClib @ ^2.1.3
  988. [env:Faketec_companion_radio_usb]
  989. extends = faketec
  990. build_flags =
  991. ${faketec.build_flags}
  992. -D MAX_CONTACTS=100
  993. -D MAX_GROUP_CHANNELS=8
  994. ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
  995. ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
  996. build_src_filter = ${faketec.build_src_filter} +<../examples/companion_radio/main.cpp>
  997. lib_deps =
  998. ${faketec.lib_deps}
  999. adafruit/RTClib @ ^2.1.3
  1000. densaugeo/base64 @ ~1.4.0
  1001. [env:Faketec_companion_radio_ble]
  1002. extends = faketec
  1003. build_flags =
  1004. ${faketec.build_flags}
  1005. -D MAX_CONTACTS=100
  1006. -D MAX_GROUP_CHANNELS=8
  1007. -D BLE_PIN_CODE=123456
  1008. -D BLE_DEBUG_LOGGING=1
  1009. -D ENABLE_PRIVATE_KEY_EXPORT=1
  1010. -D ENABLE_PRIVATE_KEY_IMPORT=1
  1011. ; -D MESH_PACKET_LOGGING=1
  1012. ; -D MESH_DEBUG=1
  1013. build_src_filter = ${faketec.build_src_filter} +<helpers/nrf52/SerialBLEInterface.cpp> +<../examples/companion_radio/main.cpp>
  1014. lib_deps =
  1015. ${faketec.lib_deps}
  1016. adafruit/RTClib @ ^2.1.3
  1017. densaugeo/base64 @ ~1.4.0
  1018. [ProMicroLLCC68]
  1019. extends = nrf52840_base
  1020. board = promicro_nrf52840
  1021. build_src_filter = ${nrf52840_base.build_src_filter} +<helpers/nrf52/faketecBoard.cpp>
  1022. build_flags = ${nrf52840_base.build_flags}
  1023. -D FAKETEC
  1024. -D RADIO_CLASS=CustomLLCC68
  1025. -D WRAPPER_CLASS=CustomLLCC68Wrapper
  1026. -D LORA_TX_POWER=22
  1027. -D SX126X_CURRENT_LIMIT=130
  1028. -D SX126X_RX_BOOSTED_GAIN=1
  1029. [env:ProMicroLLCC68_Repeater]
  1030. extends = ProMicroLLCC68
  1031. build_src_filter = ${ProMicroLLCC68.build_src_filter} +<../examples/simple_repeater/main.cpp>
  1032. build_flags =
  1033. ${ProMicroLLCC68.build_flags}
  1034. -D ADVERT_NAME="\"ProMicroLLCC68 Repeater\""
  1035. -D ADMIN_PASSWORD="\"password\""
  1036. ; -D MESH_PACKET_LOGGING=1
  1037. ; -D MESH_DEBUG=1
  1038. lib_deps =
  1039. ${ProMicroLLCC68.lib_deps}
  1040. adafruit/RTClib @ ^2.1.3
  1041. [env:ProMicroLLCC68_room_server]
  1042. extends = ProMicroLLCC68
  1043. build_src_filter = ${ProMicroLLCC68.build_src_filter} +<../examples/simple_room_server/main.cpp>
  1044. build_flags =
  1045. ${ProMicroLLCC68.build_flags}
  1046. -D ADVERT_NAME="\"ProMicroLLCC68 Room\""
  1047. -D ADMIN_PASSWORD="\"password\""
  1048. -D ROOM_PASSWORD="\"hello\""
  1049. ; -D MESH_PACKET_LOGGING=1
  1050. ; -D MESH_DEBUG=1
  1051. lib_deps =
  1052. ${ProMicroLLCC68.lib_deps}
  1053. adafruit/RTClib @ ^2.1.3
  1054. [env:ProMicroLLCC68_terminal_chat]
  1055. extends = ProMicroLLCC68
  1056. build_flags =
  1057. ${ProMicroLLCC68.build_flags}
  1058. -D MAX_CONTACTS=100
  1059. -D MAX_GROUP_CHANNELS=1
  1060. ; -D MESH_PACKET_LOGGING=1
  1061. ; -D MESH_DEBUG=1
  1062. build_src_filter = ${ProMicroLLCC68.build_src_filter} +<../examples/simple_secure_chat/main.cpp>
  1063. lib_deps =
  1064. ${ProMicroLLCC68.lib_deps}
  1065. densaugeo/base64 @ ~1.4.0
  1066. adafruit/RTClib @ ^2.1.3
  1067. [env:ProMicroLLCC68_companion_radio_usb]
  1068. extends = ProMicroLLCC68
  1069. build_flags =
  1070. ${ProMicroLLCC68.build_flags}
  1071. -D MAX_CONTACTS=100
  1072. -D MAX_GROUP_CHANNELS=8
  1073. ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
  1074. ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
  1075. build_src_filter = ${ProMicroLLCC68.build_src_filter} +<../examples/companion_radio/main.cpp>
  1076. lib_deps =
  1077. ${ProMicroLLCC68.lib_deps}
  1078. adafruit/RTClib @ ^2.1.3
  1079. densaugeo/base64 @ ~1.4.0
  1080. [env:ProMicroLLCC68_companion_radio_ble]
  1081. extends = ProMicroLLCC68
  1082. build_flags =
  1083. ${ProMicroLLCC68.build_flags}
  1084. -D MAX_CONTACTS=100
  1085. -D MAX_GROUP_CHANNELS=8
  1086. -D BLE_PIN_CODE=123456
  1087. -D BLE_DEBUG_LOGGING=1
  1088. -D ENABLE_PRIVATE_KEY_EXPORT=1
  1089. -D ENABLE_PRIVATE_KEY_IMPORT=1
  1090. ; -D MESH_PACKET_LOGGING=1
  1091. ; -D MESH_DEBUG=1
  1092. build_src_filter = ${ProMicroLLCC68.build_src_filter} +<helpers/nrf52/SerialBLEInterface.cpp> +<../examples/companion_radio/main.cpp>
  1093. lib_deps =
  1094. ${ProMicroLLCC68.lib_deps}
  1095. adafruit/RTClib @ ^2.1.3
  1096. densaugeo/base64 @ ~1.4.0