platformio.ini 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. [LilyGo_T-Echo-Lite]
  2. extends = nrf52_base
  3. board = t-echo
  4. board_build.ldscript = boards/nrf52840_s140_v6.ld
  5. build_flags = ${nrf52_base.build_flags}
  6. -I variants/lilygo_techo_lite
  7. -I src/helpers/nrf52
  8. -I lib/nrf52/s140_nrf52_6.1.1_API/include
  9. -I lib/nrf52/s140_nrf52_6.1.1_API/include/nrf52
  10. -D LILYGO_TECHO
  11. -D RADIO_CLASS=CustomSX1262
  12. -D WRAPPER_CLASS=CustomSX1262Wrapper
  13. -D LORA_TX_POWER=22
  14. -D SX126X_POWER_EN=30
  15. -D SX126X_CURRENT_LIMIT=140
  16. -D SX126X_RX_BOOSTED_GAIN=1
  17. -D P_LORA_TX_LED=LED_GREEN
  18. -D DISABLE_DIAGNOSTIC_OUTPUT
  19. -D ENV_INCLUDE_GPS=1
  20. -D GPS_BAUD_RATE=9600
  21. -D PIN_GPS_EN=GPS_EN
  22. -D DISPLAY_CLASS=GxEPDDisplay
  23. -D EINK_DISPLAY_MODEL=GxEPD2_122_T61
  24. -D EINK_SCALE_X=1.5f
  25. -D EINK_SCALE_Y=2.0f
  26. -D EINK_X_OFFSET=0
  27. -D EINK_Y_OFFSET=10
  28. -D DISPLAY_ROTATION=4
  29. -D AUTO_OFF_MILLIS=0
  30. build_src_filter = ${nrf52_base.build_src_filter}
  31. +<helpers/*.cpp>
  32. +<TechoBoard.cpp>
  33. +<helpers/sensors/EnvironmentSensorManager.cpp>
  34. +<helpers/ui/GxEPDDisplay.cpp>
  35. +<helpers/ui/MomentaryButton.cpp>
  36. +<../variants/lilygo_techo_lite>
  37. lib_deps =
  38. ${nrf52_base.lib_deps}
  39. stevemarple/MicroNMEA @ ^2.0.6
  40. adafruit/Adafruit BME280 Library @ ^2.3.0
  41. https://github.com/SoulOfNoob/GxEPD2.git
  42. bakercp/CRC32 @ ^2.0.0
  43. debug_tool = jlink
  44. upload_protocol = nrfutil
  45. [env:LilyGo_T-Echo-Lite_repeater]
  46. extends = LilyGo_T-Echo-Lite
  47. build_src_filter = ${LilyGo_T-Echo-Lite.build_src_filter}
  48. +<../examples/simple_repeater>
  49. build_flags =
  50. ${LilyGo_T-Echo-Lite.build_flags}
  51. -D ADVERT_NAME='"T-Echo-Lite Repeater"'
  52. -D ADVERT_LAT=0.0
  53. -D ADVERT_LON=0.0
  54. -D ADMIN_PASSWORD='"password"'
  55. -D MAX_NEIGHBOURS=50
  56. ; -D MESH_PACKET_LOGGING=1
  57. ; -D MESH_DEBUG=1
  58. [env:LilyGo_T-Echo-Lite_room_server]
  59. extends = LilyGo_T-Echo-Lite
  60. build_src_filter = ${LilyGo_T-Echo-Lite.build_src_filter}
  61. +<../examples/simple_room_server>
  62. build_flags =
  63. ${LilyGo_T-Echo-Lite.build_flags}
  64. -D ADVERT_NAME='"T-Echo-Lite Room"'
  65. -D ADVERT_LAT=0.0
  66. -D ADVERT_LON=0.0
  67. -D ADMIN_PASSWORD='"password"'
  68. ; -D MESH_PACKET_LOGGING=1
  69. ; -D MESH_DEBUG=1
  70. [env:LilyGo_T-Echo-Lite_companion_radio_ble]
  71. extends = LilyGo_T-Echo-Lite
  72. board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld
  73. board_upload.maximum_size = 712704
  74. build_flags =
  75. ${LilyGo_T-Echo-Lite.build_flags}
  76. -I src/helpers/ui
  77. -I examples/companion_radio/ui-new
  78. -D MAX_CONTACTS=350
  79. -D MAX_GROUP_CHANNELS=40
  80. ; -D QSPIFLASH=1
  81. -D BLE_PIN_CODE=123456
  82. ; -D BLE_DEBUG_LOGGING=1
  83. -D OFFLINE_QUEUE_SIZE=256
  84. -D UI_RECENT_LIST_SIZE=9
  85. -D UI_SENSORS_PAGE=1
  86. ; -D MESH_PACKET_LOGGING=1
  87. ; -D MESH_DEBUG=1
  88. -D AUTO_SHUTDOWN_MILLIVOLTS=3300
  89. build_src_filter = ${LilyGo_T-Echo-Lite.build_src_filter}
  90. +<helpers/nrf52/SerialBLEInterface.cpp>
  91. +<../examples/companion_radio/*.cpp>
  92. +<../examples/companion_radio/ui-new/*.cpp>
  93. lib_deps =
  94. ${LilyGo_T-Echo-Lite.lib_deps}
  95. densaugeo/base64 @ ~1.4.0
  96. [env:LilyGo_T-Echo-Lite_non_shell_companion_radio_ble]
  97. extends = LilyGo_T-Echo-Lite
  98. upload_protocol = nrfutil
  99. board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld
  100. board_upload.maximum_size = 712704
  101. build_flags =
  102. ${nrf52_base.build_flags}
  103. -I variants/lilygo_techo_lite
  104. -I src/helpers/nrf52
  105. -I lib/nrf52/s140_nrf52_6.1.1_API/include
  106. -I lib/nrf52/s140_nrf52_6.1.1_API/include/nrf52
  107. -I src/helpers/ui
  108. -I examples/companion_radio/ui-new
  109. -D LILYGO_TECHO
  110. -D RADIO_CLASS=CustomSX1262
  111. -D WRAPPER_CLASS=CustomSX1262Wrapper
  112. -D LORA_TX_POWER=22
  113. -D SX126X_POWER_EN=30
  114. -D SX126X_CURRENT_LIMIT=140
  115. -D SX126X_RX_BOOSTED_GAIN=1
  116. -D P_LORA_TX_LED=LED_GREEN
  117. -D DISABLE_DIAGNOSTIC_OUTPUT
  118. -D ENV_INCLUDE_GPS=1
  119. -D GPS_BAUD_RATE=9600
  120. -D PIN_GPS_EN=GPS_EN
  121. -D AUTO_OFF_MILLIS=0
  122. -D MAX_CONTACTS=350
  123. -D MAX_GROUP_CHANNELS=40
  124. -D BLE_PIN_CODE=123456
  125. -D OFFLINE_QUEUE_SIZE=256
  126. -D UI_RECENT_LIST_SIZE=9
  127. -D AUTO_SHUTDOWN_MILLIVOLTS=3300
  128. build_src_filter = ${nrf52_base.build_src_filter}
  129. +<helpers/*.cpp>
  130. +<TechoBoard.cpp>
  131. +<helpers/sensors/EnvironmentSensorManager.cpp>
  132. +<helpers/ui/MomentaryButton.cpp>
  133. +<../variants/lilygo_techo_lite>
  134. +<helpers/nrf52/SerialBLEInterface.cpp>
  135. +<../examples/companion_radio/*.cpp>
  136. lib_deps =
  137. ${LilyGo_T-Echo-Lite.lib_deps}
  138. densaugeo/base64 @ ~1.4.0