platformio.ini 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. [rak4631]
  2. extends = nrf52_base
  3. platform = https://github.com/maxgerhardt/platform-nordicnrf52.git#rak
  4. board = wiscore_rak4631
  5. board_check = true
  6. build_flags = ${nrf52_base.build_flags}
  7. ${sensor_base.build_flags}
  8. -I variants/rak4631
  9. -D RAK_4631
  10. -D RAK_BOARD
  11. -D PIN_BOARD_SCL=14
  12. -D PIN_BOARD_SDA=13
  13. -D PIN_GPS_TX=16
  14. -D PIN_GPS_RX=15
  15. -D PIN_GPS_EN=-1
  16. -D PIN_OLED_RESET=-1
  17. -D RADIO_CLASS=CustomSX1262
  18. -D WRAPPER_CLASS=CustomSX1262Wrapper
  19. -D LORA_TX_POWER=22
  20. -D SX126X_CURRENT_LIMIT=140
  21. -D SX126X_RX_BOOSTED_GAIN=1
  22. build_src_filter = ${nrf52_base.build_src_filter}
  23. +<../variants/rak4631>
  24. +<helpers/sensors>
  25. +<helpers/ui/SSD1306Display.cpp>
  26. +<helpers/ui/MomentaryButton.cpp>
  27. lib_deps =
  28. ${nrf52_base.lib_deps}
  29. ${sensor_base.lib_deps}
  30. adafruit/Adafruit SSD1306 @ ^2.5.13
  31. sparkfun/SparkFun u-blox GNSS Arduino Library@^2.2.27
  32. [env:RAK_4631_Repeater]
  33. extends = rak4631
  34. build_flags =
  35. ${rak4631.build_flags}
  36. -D DISPLAY_CLASS=SSD1306Display
  37. -D ADVERT_NAME='"RAK4631 Repeater"'
  38. -D ADVERT_LAT=0.0
  39. -D ADVERT_LON=0.0
  40. -D ADMIN_PASSWORD='"password"'
  41. -D MAX_NEIGHBOURS=8
  42. ; -D MESH_PACKET_LOGGING=1
  43. ; -D MESH_DEBUG=1
  44. build_src_filter = ${rak4631.build_src_filter}
  45. +<helpers/ui/SSD1306Display.cpp>
  46. +<../examples/simple_repeater>
  47. [env:RAK_4631_room_server]
  48. extends = rak4631
  49. build_flags =
  50. ${rak4631.build_flags}
  51. -D DISPLAY_CLASS=SSD1306Display
  52. -D ADVERT_NAME='"Test 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. build_src_filter = ${rak4631.build_src_filter}
  60. +<helpers/ui/SSD1306Display.cpp>
  61. +<../examples/simple_room_server>
  62. [env:RAK_4631_companion_radio_usb]
  63. extends = rak4631
  64. build_flags =
  65. ${rak4631.build_flags}
  66. -I examples/companion_radio/ui-new
  67. -D PIN_USER_BTN=9
  68. -D PIN_USER_BTN_ANA=31
  69. -D DISPLAY_CLASS=SSD1306Display
  70. -D MAX_CONTACTS=350
  71. -D MAX_GROUP_CHANNELS=40
  72. ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
  73. ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
  74. build_src_filter = ${rak4631.build_src_filter}
  75. +<../examples/companion_radio/*.cpp>
  76. +<../examples/companion_radio/ui-new/*.cpp>
  77. lib_deps =
  78. ${rak4631.lib_deps}
  79. densaugeo/base64 @ ~1.4.0
  80. [env:RAK_4631_companion_radio_ble]
  81. extends = rak4631
  82. build_flags =
  83. ${rak4631.build_flags}
  84. -I examples/companion_radio/ui-new
  85. -D PIN_USER_BTN=9
  86. -D PIN_USER_BTN_ANA=31
  87. -D DISPLAY_CLASS=SSD1306Display
  88. -D MAX_CONTACTS=350
  89. -D MAX_GROUP_CHANNELS=40
  90. -D BLE_PIN_CODE=123456
  91. -D BLE_DEBUG_LOGGING=1
  92. -D OFFLINE_QUEUE_SIZE=256
  93. ; -D MESH_PACKET_LOGGING=1
  94. ; -D MESH_DEBUG=1
  95. build_src_filter = ${rak4631.build_src_filter}
  96. +<helpers/nrf52/SerialBLEInterface.cpp>
  97. +<../examples/companion_radio/*.cpp>
  98. +<../examples/companion_radio/ui-new/*.cpp>
  99. lib_deps =
  100. ${rak4631.lib_deps}
  101. densaugeo/base64 @ ~1.4.0
  102. [env:RAK_4631_terminal_chat]
  103. extends = rak4631
  104. build_flags =
  105. ${rak4631.build_flags}
  106. -D PIN_USER_BTN=9
  107. -D PIN_USER_BTN_ANA=31
  108. -D MAX_CONTACTS=100
  109. -D MAX_GROUP_CHANNELS=1
  110. ; -D MESH_PACKET_LOGGING=1
  111. ; -D MESH_DEBUG=1
  112. build_src_filter = ${rak4631.build_src_filter}
  113. +<../examples/simple_secure_chat/main.cpp>
  114. lib_deps =
  115. ${rak4631.lib_deps}
  116. densaugeo/base64 @ ~1.4.0
  117. [env:RAK_4631_sensor]
  118. extends = rak4631
  119. build_flags =
  120. ${rak4631.build_flags}
  121. -D DISPLAY_CLASS=SSD1306Display
  122. -D ADVERT_NAME='"RAK4631 Sensor"'
  123. -D ADVERT_LAT=0.0
  124. -D ADVERT_LON=0.0
  125. -D ADMIN_PASSWORD='"password"'
  126. ; -D MESH_PACKET_LOGGING=1
  127. -D MESH_DEBUG=1
  128. build_src_filter = ${rak4631.build_src_filter}
  129. +<helpers/ui/SSD1306Display.cpp>
  130. +<../examples/simple_sensor>