platformio.ini 4.6 KB

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