platformio.ini 4.3 KB

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