platformio.ini 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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 P_LORA_DIO_1=40
  15. -D P_LORA_NSS=11
  16. -D P_LORA_RESET=7
  17. -D P_LORA_BUSY=14
  18. -D P_LORA_SCLK=13
  19. -D P_LORA_MISO=17
  20. -D P_LORA_MOSI=15
  21. -D SX126X_POWER_EN=30
  22. -D SX126X_CURRENT_LIMIT=140
  23. -D SX126X_RX_BOOSTED_GAIN=1
  24. -D P_LORA_TX_LED=LED_GREEN
  25. -D DISABLE_DIAGNOSTIC_OUTPUT
  26. -D ENV_INCLUDE_GPS=1
  27. ; -D ENV_INCLUDE_BME280=1
  28. -D GPS_BAUD_RATE=9600
  29. -D PIN_GPS_EN=GPS_EN
  30. ; -D TELEM_BME280_ADDRESS=0x77
  31. -D DISPLAY_CLASS=GxEPDDisplay
  32. -D EINK_DISPLAY_MODEL=GxEPD2_122_T61
  33. -D EINK_SCALE_X=1.0f
  34. -D EINK_SCALE_Y=2.0f
  35. -D EINK_X_OFFSET=0
  36. -D EINK_Y_OFFSET=10
  37. -D DISPLAY_ROTATION=4
  38. -D AUTO_OFF_MILLIS=0
  39. build_src_filter = ${nrf52_base.build_src_filter}
  40. +<helpers/*.cpp>
  41. +<TechoBoard.cpp>
  42. +<helpers/sensors/EnvironmentSensorManager.cpp>
  43. +<helpers/ui/GxEPDDisplay.cpp>
  44. +<helpers/ui/MomentaryButton.cpp>
  45. +<../variants/lilygo_techo_lite>
  46. lib_deps =
  47. ${nrf52_base.lib_deps}
  48. stevemarple/MicroNMEA @ ^2.0.6
  49. adafruit/Adafruit BME280 Library @ ^2.3.0
  50. zinggjm/GxEPD2 @ 1.6.2
  51. bakercp/CRC32 @ ^2.0.0
  52. debug_tool = jlink
  53. upload_protocol = nrfutil
  54. [env:LilyGo_T-Echo-Lite_repeater]
  55. extends = LilyGo_T-Echo-Lite
  56. build_src_filter = ${LilyGo_T-Echo-Lite.build_src_filter}
  57. +<../examples/simple_repeater>
  58. build_flags =
  59. ${LilyGo_T-Echo-Lite.build_flags}
  60. -D ADVERT_NAME='"T-Echo-Lite Repeater"'
  61. -D ADVERT_LAT=0.0
  62. -D ADVERT_LON=0.0
  63. -D ADMIN_PASSWORD='"password"'
  64. -D MAX_NEIGHBOURS=8
  65. ; -D MESH_PACKET_LOGGING=1
  66. ; -D MESH_DEBUG=1
  67. [env:LilyGo_T-Echo-Lite_room_server]
  68. extends = LilyGo_T-Echo-Lite
  69. build_src_filter = ${LilyGo_T-Echo-Lite.build_src_filter}
  70. +<../examples/simple_room_server>
  71. build_flags =
  72. ${LilyGo_T-Echo-Lite.build_flags}
  73. -D ADVERT_NAME='"T-Echo-Lite Room"'
  74. -D ADVERT_LAT=0.0
  75. -D ADVERT_LON=0.0
  76. -D ADMIN_PASSWORD='"password"'
  77. ; -D MESH_PACKET_LOGGING=1
  78. ; -D MESH_DEBUG=1
  79. [env:LilyGo_T-Echo-Lite_companion_radio_ble]
  80. extends = LilyGo_T-Echo-Lite
  81. board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld
  82. board_upload.maximum_size = 712704
  83. build_flags =
  84. ${LilyGo_T-Echo-Lite.build_flags}
  85. -I src/helpers/ui
  86. -I examples/companion_radio/ui-new
  87. -D MAX_CONTACTS=350
  88. -D MAX_GROUP_CHANNELS=40
  89. ; -D QSPIFLASH=1
  90. -D BLE_PIN_CODE=123456
  91. ; -D BLE_DEBUG_LOGGING=1
  92. -D OFFLINE_QUEUE_SIZE=256
  93. -D UI_RECENT_LIST_SIZE=9
  94. -D UI_SENSORS_PAGE=1
  95. ; -D MESH_PACKET_LOGGING=1
  96. ; -D MESH_DEBUG=1
  97. -D AUTO_SHUTDOWN_MILLIVOLTS=3300
  98. build_src_filter = ${LilyGo_T-Echo-Lite.build_src_filter}
  99. +<helpers/nrf52/SerialBLEInterface.cpp>
  100. +<../examples/companion_radio/*.cpp>
  101. +<../examples/companion_radio/ui-new/*.cpp>
  102. lib_deps =
  103. ${LilyGo_T-Echo-Lite.lib_deps}
  104. densaugeo/base64 @ ~1.4.0