platformio.ini 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. [Heltec_T190_base]
  2. extends = esp32_base
  3. board = heltec_t190
  4. build_flags =
  5. ${esp32_base.build_flags}
  6. -I variants/heltec_t190
  7. -I src/helpers/ui
  8. -D HELTEC_VISION_MASTER_T190
  9. -D RADIO_CLASS=CustomSX1262
  10. -D WRAPPER_CLASS=CustomSX1262Wrapper
  11. -D P_LORA_DIO_1=14
  12. -D P_LORA_NSS=8
  13. -D P_LORA_RESET=12
  14. -D P_LORA_BUSY=13
  15. -D P_LORA_SCLK=9
  16. -D P_LORA_MISO=11
  17. -D P_LORA_MOSI=10
  18. -D LORA_TX_POWER=22
  19. -D PIN_USER_BTN=0
  20. -D PIN_VEXT_EN=5
  21. -D PIN_VEXT_EN_ACTIVE=HIGH
  22. -D PIN_VBAT_READ=6
  23. -D PIN_ADC_CTRL=46
  24. -D SX126X_DIO2_AS_RF_SWITCH=true
  25. -D SX126X_DIO3_TCXO_VOLTAGE=1.8
  26. -D SX126X_CURRENT_LIMIT=140
  27. -D SX126X_RX_BOOSTED_GAIN=1
  28. -D PIN_BOARD_SDA=2
  29. -D PIN_BOARD_SCL=1
  30. -D PIN_TFT_SCL=38
  31. -D PIN_TFT_SDA=48
  32. -D PIN_TFT_RST=40
  33. -D PIN_TFT_VDD_CTL=7
  34. -D PIN_TFT_LEDA_CTL=17
  35. -D PIN_TFT_LEDA_CTL_ACTIVE=HIGH
  36. -D PIN_TFT_CS=39
  37. -D PIN_TFT_DC=47
  38. -D ST7789
  39. -D DISPLAY_CLASS=ST7789Display
  40. build_src_filter = ${esp32_base.build_src_filter}
  41. +<../variants/heltec_t190>
  42. +<helpers/*.cpp>
  43. +<helpers/ui/ST7789Display.cpp>
  44. +<helpers/ui/OLEDDisplay.cpp>
  45. +<helpers/ui/OLEDDisplayFonts.cpp>
  46. lib_deps =
  47. ${esp32_base.lib_deps}
  48. adafruit/Adafruit GFX Library @ ^1.12.1
  49. [env:Heltec_T190_companion_radio_ble_]
  50. extends = Heltec_T190_base
  51. build_flags =
  52. ${Heltec_T190_base.build_flags}
  53. -I examples/companion_radio/ui-new
  54. -D MAX_CONTACTS=350
  55. -D MAX_GROUP_CHANNELS=40
  56. -D BLE_PIN_CODE=123456 ; dynamic, random PIN
  57. -D BLE_DEBUG_LOGGING=1
  58. -D OFFLINE_QUEUE_SIZE=256
  59. build_src_filter = ${Heltec_T190_base.build_src_filter}
  60. +<helpers/esp32/*.cpp>
  61. +<../examples/companion_radio/*.cpp>
  62. +<../examples/companion_radio/ui-new/*.cpp>
  63. lib_deps =
  64. ${Heltec_T190_base.lib_deps}
  65. densaugeo/base64 @ ~1.4.0
  66. [env:Heltec_T190_companion_radio_usb_]
  67. extends = Heltec_T190_base
  68. build_flags =
  69. ${Heltec_T190_base.build_flags}
  70. -I examples/companion_radio/ui-new
  71. -D MAX_CONTACTS=350
  72. -D MAX_GROUP_CHANNELS=40
  73. -D OFFLINE_QUEUE_SIZE=256
  74. build_src_filter = ${Heltec_T190_base.build_src_filter}
  75. +<helpers/esp32/*.cpp>
  76. +<../examples/companion_radio/*.cpp>
  77. +<../examples/companion_radio/ui-new/*.cpp>
  78. lib_deps =
  79. ${Heltec_T190_base.lib_deps}
  80. densaugeo/base64 @ ~1.4.0
  81. [env:Heltec_T190_repeater_]
  82. extends = Heltec_T190_base
  83. build_flags =
  84. ${Heltec_T190_base.build_flags}
  85. -D ADVERT_NAME='"Heltec T190 Repeater"'
  86. -D ADVERT_LAT=0.0
  87. -D ADVERT_LON=0.0
  88. -D ADMIN_PASSWORD='"password"'
  89. -D MAX_NEIGHBOURS=50
  90. build_src_filter = ${Heltec_T190_base.build_src_filter}
  91. +<../examples/simple_repeater>
  92. lib_deps =
  93. ${Heltec_T190_base.lib_deps}
  94. ${esp32_ota.lib_deps}
  95. ; [env:Heltec_T190_repeater_bridge_rs232_]
  96. ; extends = Heltec_T190_base
  97. ; build_flags =
  98. ; ${Heltec_T190_base.build_flags}
  99. ; -D ADVERT_NAME='"RS232 Bridge"'
  100. ; -D ADVERT_LAT=0.0
  101. ; -D ADVERT_LON=0.0
  102. ; -D ADMIN_PASSWORD='"password"'
  103. ; -D MAX_NEIGHBOURS=50
  104. ; -D WITH_RS232_BRIDGE=Serial2
  105. ; -D WITH_RS232_BRIDGE_RX=5
  106. ; -D WITH_RS232_BRIDGE_TX=6
  107. ; -D BRIDGE_DEBUG=1
  108. ; ; -D MESH_PACKET_LOGGING=1
  109. ; ; -D MESH_DEBUG=1
  110. ; build_src_filter = ${Heltec_T190_base.build_src_filter}
  111. ; +<helpers/bridges/RS232Bridge.cpp>
  112. ; +<../examples/simple_repeater>
  113. ; lib_deps =
  114. ; ${Heltec_T190_base.lib_deps}
  115. ; ${esp32_ota.lib_deps}
  116. [env:Heltec_T190_repeater_bridge_espnow_]
  117. extends = Heltec_T190_base
  118. build_flags =
  119. ${Heltec_T190_base.build_flags}
  120. -D ADVERT_NAME='"ESPNow Bridge"'
  121. -D ADVERT_LAT=0.0
  122. -D ADVERT_LON=0.0
  123. -D ADMIN_PASSWORD='"password"'
  124. -D MAX_NEIGHBOURS=50
  125. -D WITH_ESPNOW_BRIDGE=1
  126. ; -D BRIDGE_DEBUG=1
  127. ; -D MESH_PACKET_LOGGING=1
  128. ; -D MESH_DEBUG=1
  129. build_src_filter = ${Heltec_T190_base.build_src_filter}
  130. +<helpers/bridges/ESPNowBridge.cpp>
  131. +<../examples/simple_repeater>
  132. lib_deps =
  133. ${Heltec_T190_base.lib_deps}
  134. ${esp32_ota.lib_deps}
  135. [env:Heltec_T190_room_server_]
  136. extends = Heltec_T190_base
  137. build_flags =
  138. ${Heltec_T190_base.build_flags}
  139. -D ADVERT_NAME='"Heltec T190 Room"'
  140. -D ADVERT_LAT=0.0
  141. -D ADVERT_LON=0.0
  142. -D ADMIN_PASSWORD='"password"'
  143. -D ROOM_PASSWORD='"hello"'
  144. build_src_filter = ${Heltec_T190_base.build_src_filter}
  145. +<../examples/simple_room_server>
  146. lib_deps =
  147. ${Heltec_T190_base.lib_deps}
  148. ${esp32_ota.lib_deps}