platformio.ini 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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_room_server]
  47. extends = Station_G2
  48. build_src_filter = ${Station_G2.build_src_filter}
  49. +<../examples/simple_room_server>
  50. build_flags =
  51. ${Station_G2.build_flags}
  52. -D ADVERT_NAME='"Station G2 Room"'
  53. -D ADVERT_LAT=0.0
  54. -D ADVERT_LON=0.0
  55. -D ADMIN_PASSWORD='"password"'
  56. -D ROOM_PASSWORD='"hello"'
  57. ; -D MESH_PACKET_LOGGING=1
  58. ; -D MESH_DEBUG=1
  59. lib_deps =
  60. ${Station_G2.lib_deps}
  61. ${esp32_ota.lib_deps}
  62. [env:Station_G2_companion_radio_usb]
  63. extends = Station_G2
  64. build_flags =
  65. ${Station_G2.build_flags}
  66. -I examples/companion_radio/ui-new
  67. -D DISPLAY_CLASS=SH1106Display
  68. -D MAX_CONTACTS=100
  69. -D MAX_GROUP_CHANNELS=8
  70. ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
  71. ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
  72. build_src_filter = ${Station_G2.build_src_filter}
  73. +<helpers/esp32/*.cpp>
  74. +<../examples/companion_radio/*.cpp>
  75. +<../examples/companion_radio/ui-new/*.cpp>
  76. lib_deps =
  77. ${Station_G2.lib_deps}
  78. densaugeo/base64 @ ~1.4.0
  79. [env:Station_G2_companion_radio_ble]
  80. extends = Station_G2
  81. build_flags =
  82. ${Station_G2.build_flags}
  83. -I examples/companion_radio/ui-new
  84. -D DISPLAY_CLASS=SH1106Display
  85. -D MAX_CONTACTS=100
  86. -D MAX_GROUP_CHANNELS=8
  87. -D BLE_PIN_CODE=123456
  88. -D BLE_DEBUG_LOGGING=1
  89. -D OFFLINE_QUEUE_SIZE=256
  90. ; -D MESH_PACKET_LOGGING=1
  91. ; -D MESH_DEBUG=1
  92. build_src_filter = ${Station_G2.build_src_filter}
  93. +<helpers/esp32/*.cpp>
  94. +<../examples/companion_radio/*.cpp>
  95. +<../examples/companion_radio/ui-new/*.cpp>
  96. lib_deps =
  97. ${Station_G2.lib_deps}
  98. densaugeo/base64 @ ~1.4.0