platformio.ini 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. [Station_G2]
  2. extends = esp32_base
  3. board = station-g2
  4. build_flags =
  5. ${esp32_base.build_flags}
  6. -I variants/station_g2
  7. -D STATION_G2
  8. -D RADIO_CLASS=CustomSX1262
  9. -D WRAPPER_CLASS=CustomSX1262Wrapper
  10. -D LORA_TX_POWER=19
  11. ; -D P_LORA_TX_LED=35
  12. -D PIN_BOARD_SDA=5
  13. -D PIN_BOARD_SCL=6
  14. -D PIN_USER_BTN=38
  15. -D SX126X_DIO2_AS_RF_SWITCH=true
  16. -D SX126X_DIO3_TCXO_VOLTAGE=1.8
  17. -D SX126X_CURRENT_LIMIT=140
  18. ; -D SX126X_RX_BOOSTED_GAIN=1 - DO NOT ENABLE THIS!
  19. ; https://wiki.uniteng.com/en/meshtastic/station-g2#impact-of-lora-node-dense-areashigh-noise-environments-on-rf-performance
  20. -I src/helpers/ui
  21. -D DISPLAY_CLASS=SH1106Display
  22. build_src_filter = ${esp32_base.build_src_filter}
  23. +<../variants/station_g2>
  24. +<helpers/ui/SH1106Display.cpp>
  25. +<helpers/ui/MomentaryButton.cpp>
  26. lib_deps =
  27. ${esp32_base.lib_deps}
  28. adafruit/Adafruit SH110X @ ~2.1.13
  29. adafruit/Adafruit GFX Library @ ^1.12.1
  30. [env:Station_G2_repeater]
  31. extends = Station_G2
  32. build_flags =
  33. ${Station_G2.build_flags}
  34. -D ADVERT_NAME='"Station G2 Repeater"'
  35. -D ADVERT_LAT=0.0
  36. -D ADVERT_LON=0.0
  37. -D ADMIN_PASSWORD='"password"'
  38. -D MAX_NEIGHBOURS=8
  39. ; -D MESH_PACKET_LOGGING=1
  40. ; -D MESH_DEBUG=1
  41. build_src_filter = ${Station_G2.build_src_filter}
  42. +<../examples/simple_repeater>
  43. lib_deps =
  44. ${Station_G2.lib_deps}
  45. ${esp32_ota.lib_deps}
  46. [env:Station_G2_logging_repeater]
  47. extends = Station_G2
  48. build_flags =
  49. ${Station_G2.build_flags}
  50. -D ADVERT_NAME='"Station G2 Logging Repeater"'
  51. -D ADVERT_LAT=0.0
  52. -D ADVERT_LON=0.0
  53. -D ADMIN_PASSWORD='"password"'
  54. -D MAX_NEIGHBOURS=8
  55. -D MESH_PACKET_LOGGING=1
  56. -D SX126X_RX_BOOSTED_GAIN=1
  57. ; https://wiki.uniteng.com/en/meshtastic/station-g2#impact-of-lora-node-dense-areashigh-noise-environments-on-rf-performance
  58. ; -D MESH_DEBUG=1
  59. build_src_filter = ${Station_G2.build_src_filter}
  60. +<../examples/simple_repeater>
  61. lib_deps =
  62. ${Station_G2.lib_deps}
  63. ${esp32_ota.lib_deps}
  64. [env:Station_G2_room_server]
  65. extends = Station_G2
  66. build_src_filter = ${Station_G2.build_src_filter}
  67. +<../examples/simple_room_server>
  68. build_flags =
  69. ${Station_G2.build_flags}
  70. -D ADVERT_NAME='"Station G2 Room"'
  71. -D ADVERT_LAT=0.0
  72. -D ADVERT_LON=0.0
  73. -D ADMIN_PASSWORD='"password"'
  74. -D ROOM_PASSWORD='"hello"'
  75. ; -D MESH_PACKET_LOGGING=1
  76. ; -D MESH_DEBUG=1
  77. lib_deps =
  78. ${Station_G2.lib_deps}
  79. ${esp32_ota.lib_deps}
  80. [env:Station_G2_companion_radio_usb]
  81. extends = Station_G2
  82. build_flags =
  83. ${Station_G2.build_flags}
  84. -I examples/companion_radio/ui-new
  85. -D DISPLAY_CLASS=SH1106Display
  86. -D MAX_CONTACTS=100
  87. -D MAX_GROUP_CHANNELS=8
  88. ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
  89. ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
  90. build_src_filter = ${Station_G2.build_src_filter}
  91. +<helpers/esp32/*.cpp>
  92. +<../examples/companion_radio/*.cpp>
  93. +<../examples/companion_radio/ui-new/*.cpp>
  94. lib_deps =
  95. ${Station_G2.lib_deps}
  96. densaugeo/base64 @ ~1.4.0
  97. [env:Station_G2_companion_radio_ble]
  98. extends = Station_G2
  99. build_flags =
  100. ${Station_G2.build_flags}
  101. -I examples/companion_radio/ui-new
  102. -D DISPLAY_CLASS=SH1106Display
  103. -D MAX_CONTACTS=100
  104. -D MAX_GROUP_CHANNELS=8
  105. -D BLE_PIN_CODE=123456
  106. -D BLE_DEBUG_LOGGING=1
  107. -D OFFLINE_QUEUE_SIZE=256
  108. ; -D MESH_PACKET_LOGGING=1
  109. ; -D MESH_DEBUG=1
  110. build_src_filter = ${Station_G2.build_src_filter}
  111. +<helpers/esp32/*.cpp>
  112. +<../examples/companion_radio/*.cpp>
  113. +<../examples/companion_radio/ui-new/*.cpp>
  114. lib_deps =
  115. ${Station_G2.lib_deps}
  116. densaugeo/base64 @ ~1.4.0