platformio.ini 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. [KeepteenLT1]
  2. extends = nrf52_base
  3. board = keepteen_lt1
  4. build_flags = ${nrf52_base.build_flags}
  5. -I variants/keepteen_lt1
  6. -D KEEPTEEN_LT1
  7. -D RADIO_CLASS=CustomSX1262
  8. -D WRAPPER_CLASS=CustomSX1262Wrapper
  9. -D LORA_TX_POWER=22
  10. -D SX126X_CURRENT_LIMIT=140
  11. -D SX126X_RX_BOOSTED_GAIN=1
  12. -D PIN_BOARD_SDA=34
  13. -D PIN_BOARD_SCL=36
  14. -D ENV_INCLUDE_GPS=1
  15. build_src_filter = ${nrf52_base.build_src_filter}
  16. +<helpers/sensors>
  17. +<../variants/keepteen_lt1>
  18. lib_deps= ${nrf52_base.lib_deps}
  19. adafruit/Adafruit SSD1306 @ ^2.5.13
  20. stevemarple/MicroNMEA @ ^2.0.6
  21. [env:KeepteenLT1_repeater]
  22. extends = KeepteenLT1
  23. build_src_filter = ${KeepteenLT1.build_src_filter}
  24. +<../examples/simple_repeater>
  25. +<helpers/ui/SSD1306Display.cpp>
  26. +<helpers/ui/MomentaryButton.cpp>
  27. build_flags =
  28. ${KeepteenLT1.build_flags}
  29. -D ADVERT_NAME='"KeepteenLT1 Repeater"'
  30. -D ADVERT_LAT=0.0
  31. -D ADVERT_LON=0.0
  32. -D ADMIN_PASSWORD='"password"'
  33. -D MAX_NEIGHBOURS=50
  34. -D DISPLAY_CLASS=SSD1306Display
  35. ; -D MESH_PACKET_LOGGING=1
  36. ; -D MESH_DEBUG=1
  37. lib_deps = ${KeepteenLT1.lib_deps}
  38. adafruit/RTClib @ ^2.1.3
  39. [env:KeepteenLT1_room_server]
  40. extends = KeepteenLT1
  41. build_src_filter = ${KeepteenLT1.build_src_filter}
  42. +<../examples/simple_room_server>
  43. +<helpers/ui/SSD1306Display.cpp>
  44. +<helpers/ui/MomentaryButton.cpp>
  45. build_flags = ${KeepteenLT1.build_flags}
  46. -D ADVERT_NAME='"KeepteenLT1 Room"'
  47. -D ADVERT_LAT=0.0
  48. -D ADVERT_LON=0.0
  49. -D ADMIN_PASSWORD='"password"'
  50. -D ROOM_PASSWORD='"hello"'
  51. -D DISPLAY_CLASS=SSD1306Display
  52. ; -D MESH_PACKET_LOGGING=1
  53. ; -D MESH_DEBUG=1
  54. lib_deps = ${KeepteenLT1.lib_deps}
  55. adafruit/RTClib @ ^2.1.3
  56. [env:KeepteenLT1_terminal_chat]
  57. extends = KeepteenLT1
  58. build_flags = ${KeepteenLT1.build_flags}
  59. -D MAX_CONTACTS=100
  60. -D MAX_GROUP_CHANNELS=1
  61. ; -D MESH_PACKET_LOGGING=1
  62. ; -D MESH_DEBUG=1
  63. build_src_filter = ${KeepteenLT1.build_src_filter}
  64. +<../examples/simple_secure_chat/main.cpp>
  65. lib_deps = ${KeepteenLT1.lib_deps}
  66. densaugeo/base64 @ ~1.4.0
  67. adafruit/RTClib @ ^2.1.3
  68. [env:KeepteenLT1_companion_radio_usb]
  69. extends = KeepteenLT1
  70. board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld
  71. board_upload.maximum_size = 712704
  72. build_flags = ${KeepteenLT1.build_flags}
  73. -I examples/companion_radio/ui-new
  74. -D MAX_CONTACTS=350
  75. -D MAX_GROUP_CHANNELS=40
  76. -D DISPLAY_CLASS=SSD1306Display
  77. ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
  78. ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
  79. build_src_filter = ${KeepteenLT1.build_src_filter}
  80. +<helpers/ui/SSD1306Display.cpp>
  81. +<helpers/ui/MomentaryButton.cpp>
  82. +<../examples/companion_radio/*.cpp>
  83. +<../examples/companion_radio/ui-new/*.cpp>
  84. lib_deps = ${KeepteenLT1.lib_deps}
  85. adafruit/RTClib @ ^2.1.3
  86. densaugeo/base64 @ ~1.4.0
  87. [env:KeepteenLT1_companion_radio_ble]
  88. extends = KeepteenLT1
  89. board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld
  90. board_upload.maximum_size = 712704
  91. build_flags = ${KeepteenLT1.build_flags}
  92. -I examples/companion_radio/ui-new
  93. -D MAX_CONTACTS=350
  94. -D MAX_GROUP_CHANNELS=40
  95. -D BLE_PIN_CODE=123456
  96. -D BLE_DEBUG_LOGGING=1
  97. -D OFFLINE_QUEUE_SIZE=256
  98. -D DISPLAY_CLASS=SSD1306Display
  99. ; -D MESH_PACKET_LOGGING=1
  100. -D MESH_DEBUG=1
  101. build_src_filter = ${KeepteenLT1.build_src_filter}
  102. +<helpers/nrf52/SerialBLEInterface.cpp>
  103. +<helpers/ui/SSD1306Display.cpp>
  104. +<helpers/ui/MomentaryButton.cpp>
  105. +<../examples/companion_radio/*.cpp>
  106. +<../examples/companion_radio/ui-new/*.cpp>
  107. lib_deps = ${KeepteenLT1.lib_deps}
  108. adafruit/RTClib @ ^2.1.3
  109. densaugeo/base64 @ ~1.4.0
  110. ; [env:KeepteenLT1_sensor]
  111. ; extends = KeepteenLT1
  112. ; build_flags =
  113. ; ${KeepteenLT1.build_flags}
  114. ; -D ADVERT_NAME='"KeepteenLT1 Sensor"'
  115. ; -D ADVERT_LAT=0.0
  116. ; -D ADVERT_LON=0.0
  117. ; -D ADMIN_PASSWORD='"password"'
  118. ; -D DISPLAY_CLASS=SSD1306Display
  119. ; ; -D MESH_PACKET_LOGGING=1
  120. ; ; -D MESH_DEBUG=1
  121. ; build_src_filter = ${KeepteenLT1.build_src_filter}
  122. ; +<helpers/ui/SSD1306Display.cpp>
  123. ; +<helpers/ui/MomentaryButton.cpp>
  124. ; +<../examples/simple_sensor>
  125. ; lib_deps =
  126. ; ${KeepteenLT1.lib_deps}