platformio.ini 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. [Heltec_E290_base]
  2. extends = esp32_base
  3. board = heltec_e290
  4. build_flags =
  5. ${esp32_base.build_flags}
  6. -I variants/heltec_e290
  7. -D Vision_Master_E290
  8. -D ARDUINO_USB_CDC_ON_BOOT=1
  9. -D USE_SX1262
  10. -D RADIO_CLASS=CustomSX1262
  11. -D WRAPPER_CLASS=CustomSX1262Wrapper
  12. -D LORA_TX_POWER=22
  13. -D P_LORA_DIO_1=14
  14. -D P_LORA_NSS=8
  15. -D P_LORA_RESET=12
  16. -D P_LORA_BUSY=13
  17. -D P_LORA_SCLK=9
  18. -D P_LORA_MISO=11
  19. -D P_LORA_MOSI=10
  20. -D P_LORA_TX_LED=45
  21. -D PIN_USER_BTN=0
  22. -D PIN_VEXT_EN=18
  23. -D PIN_VEXT_EN_ACTIVE=HIGH
  24. -D PIN_VBAT_READ=7
  25. -D PIN_ADC_CTRL=46
  26. -D SX126X_DIO2_AS_RF_SWITCH=true
  27. -D SX126X_DIO3_TCXO_VOLTAGE=1.8
  28. -D SX126X_CURRENT_LIMIT=140
  29. -D SX126X_RX_BOOSTED_GAIN=1
  30. -D PIN_BOARD_SDA=39
  31. -D PIN_BOARD_SCL=38
  32. build_src_filter = ${esp32_base.build_src_filter}
  33. +<../variants/heltec_e290>
  34. lib_deps =
  35. ${esp32_base.lib_deps}
  36. https://github.com/Quency-D/heltec-eink-modules/archive/563dd41fd850a1bc3039b8723da4f3a20fe1c800.zip
  37. [env:Heltec_E290_companion_ble]
  38. extends = Heltec_E290_base
  39. build_flags =
  40. ${Heltec_E290_base.build_flags}
  41. -I examples/companion_radio/ui-new
  42. -D MAX_CONTACTS=350
  43. -D MAX_GROUP_CHANNELS=40
  44. -D DISPLAY_CLASS=E290Display
  45. -D AUTO_OFF_MILLIS=0
  46. -D BLE_PIN_CODE=123456 ; dynamic, random PIN
  47. -D BLE_DEBUG_LOGGING=1
  48. -D OFFLINE_QUEUE_SIZE=256
  49. build_src_filter = ${Heltec_E290_base.build_src_filter}
  50. +<helpers/ui/E290Display.cpp>
  51. +<helpers/esp32/*.cpp>
  52. +<../examples/companion_radio/*.cpp>
  53. +<../examples/companion_radio/ui-new/*.cpp>
  54. lib_deps =
  55. ${Heltec_E290_base.lib_deps}
  56. densaugeo/base64 @ ~1.4.0
  57. bakercp/CRC32 @ ^2.0.0
  58. [env:Heltec_E290_companion_usb]
  59. extends = Heltec_E290_base
  60. build_flags =
  61. ${Heltec_E290_base.build_flags}
  62. -I examples/companion_radio/ui-new
  63. -D MAX_CONTACTS=350
  64. -D MAX_GROUP_CHANNELS=40
  65. -D DISPLAY_CLASS=E290Display
  66. -D AUTO_OFF_MILLIS=0
  67. -D BLE_DEBUG_LOGGING=1
  68. -D OFFLINE_QUEUE_SIZE=256
  69. build_src_filter = ${Heltec_E290_base.build_src_filter}
  70. +<helpers/ui/E290Display.cpp>
  71. +<helpers/esp32/*.cpp>
  72. +<../examples/companion_radio/*.cpp>
  73. +<../examples/companion_radio/ui-new/*.cpp>
  74. lib_deps =
  75. ${Heltec_E290_base.lib_deps}
  76. densaugeo/base64 @ ~1.4.0
  77. bakercp/CRC32 @ ^2.0.0
  78. [env:Heltec_E290_repeater]
  79. extends = Heltec_E290_base
  80. build_flags =
  81. ${Heltec_E290_base.build_flags}
  82. -D DISPLAY_CLASS=E290Display
  83. -D ADVERT_NAME='"Heltec E290 Repeater"'
  84. -D ADVERT_LAT=0.0
  85. -D ADVERT_LON=0.0
  86. -D ADMIN_PASSWORD='"password"'
  87. -D MAX_NEIGHBOURS=50
  88. build_src_filter = ${Heltec_E290_base.build_src_filter}
  89. +<helpers/ui/E290Display.cpp>
  90. +<../examples/simple_repeater>
  91. lib_deps =
  92. ${Heltec_E290_base.lib_deps}
  93. ${esp32_ota.lib_deps}
  94. bakercp/CRC32 @ ^2.0.0
  95. ; [env:Heltec_E290_repeater_bridge_rs232]
  96. ; extends = Heltec_E290_base
  97. ; build_flags =
  98. ; ${Heltec_E290_base.build_flags}
  99. ; -D DISPLAY_CLASS=E290Display
  100. ; -D ADVERT_NAME='"RS232 Bridge"'
  101. ; -D ADVERT_LAT=0.0
  102. ; -D ADVERT_LON=0.0
  103. ; -D ADMIN_PASSWORD='"password"'
  104. ; -D MAX_NEIGHBOURS=50
  105. ; -D WITH_RS232_BRIDGE=Serial2
  106. ; -D WITH_RS232_BRIDGE_RX=5
  107. ; -D WITH_RS232_BRIDGE_TX=6
  108. ; -D BRIDGE_DEBUG=1
  109. ; ; -D MESH_PACKET_LOGGING=1
  110. ; ; -D MESH_DEBUG=1
  111. ; build_src_filter = ${Heltec_E290_base.build_src_filter}
  112. ; +<helpers/bridges/RS232Bridge.cpp>
  113. ; +<helpers/ui/E290Display.cpp>
  114. ; +<../examples/simple_repeater>
  115. ; lib_deps =
  116. ; ${Heltec_E290_base.lib_deps}
  117. ; ${esp32_ota.lib_deps}
  118. ; bakercp/CRC32 @ ^2.0.0
  119. [env:Heltec_E290_repeater_bridge_espnow]
  120. extends = Heltec_E290_base
  121. build_flags =
  122. ${Heltec_E290_base.build_flags}
  123. -D DISPLAY_CLASS=E290Display
  124. -D ADVERT_NAME='"ESPNow Bridge"'
  125. -D ADVERT_LAT=0.0
  126. -D ADVERT_LON=0.0
  127. -D ADMIN_PASSWORD='"password"'
  128. -D MAX_NEIGHBOURS=50
  129. -D WITH_ESPNOW_BRIDGE=1
  130. ; -D BRIDGE_DEBUG=1
  131. ; -D MESH_PACKET_LOGGING=1
  132. ; -D MESH_DEBUG=1
  133. build_src_filter = ${Heltec_E290_base.build_src_filter}
  134. +<helpers/bridges/ESPNowBridge.cpp>
  135. +<helpers/ui/E290Display.cpp>
  136. +<../examples/simple_repeater>
  137. lib_deps =
  138. ${Heltec_E290_base.lib_deps}
  139. ${esp32_ota.lib_deps}
  140. bakercp/CRC32 @ ^2.0.0
  141. [env:Heltec_E290_room_server]
  142. extends = Heltec_E290_base
  143. build_flags =
  144. ${Heltec_E290_base.build_flags}
  145. -D DISPLAY_CLASS=E290Display
  146. -D ADVERT_NAME='"Heltec E290 Room"'
  147. -D ADVERT_LAT=0.0
  148. -D ADVERT_LON=0.0
  149. -D ADMIN_PASSWORD='"password"'
  150. -D ROOM_PASSWORD='"hello"'
  151. build_src_filter = ${Heltec_E290_base.build_src_filter}
  152. +<helpers/ui/E290Display.cpp>
  153. +<../examples/simple_room_server>
  154. lib_deps =
  155. ${Heltec_E290_base.lib_deps}
  156. ${esp32_ota.lib_deps}
  157. bakercp/CRC32 @ ^2.0.0
  158. [env:Heltec_E290_kiss_modem]
  159. extends = Heltec_E290_base
  160. build_src_filter = ${Heltec_E290_base.build_src_filter}
  161. +<../examples/kiss_modem/>