platformio.ini 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. [Tenstar_esp32_C3]
  2. extends = esp32_base
  3. board = esp32-c3-devkitm-1
  4. build_flags =
  5. ${esp32_base.build_flags}
  6. -I variants/tenstar_c3
  7. -D ESP32_CPU_FREQ=80
  8. -D LORA_TX_BOOST_PIN=4
  9. -D P_LORA_TX_NEOPIXEL_LED=10
  10. -D PIN_VBAT_READ=1
  11. -D P_LORA_MISO=9
  12. -D P_LORA_SCLK=8
  13. -D P_LORA_MOSI=7
  14. -D P_LORA_DIO_1=2
  15. -D P_LORA_NSS=6
  16. -D P_LORA_RESET=RADIOLIB_NC
  17. -D P_LORA_BUSY=3
  18. ; -D PIN_BOARD_SDA=18
  19. ; -D PIN_BOARD_SCL=19
  20. -D SX126X_DIO2_AS_RF_SWITCH=true
  21. -D SX126X_DIO3_TCXO_VOLTAGE=1.8
  22. -D SX126X_CURRENT_LIMIT=140
  23. build_src_filter = ${esp32_base.build_src_filter}
  24. +<../variants/tenstar_c3>
  25. [env:Tenstar_C3_sx1262_repeater]
  26. extends = Tenstar_esp32_C3
  27. build_src_filter = ${Tenstar_esp32_C3.build_src_filter}
  28. +<../examples/simple_repeater/*.cpp>
  29. build_flags =
  30. ${Tenstar_esp32_C3.build_flags}
  31. -D RADIO_CLASS=CustomSX1262
  32. -D WRAPPER_CLASS=CustomSX1262Wrapper
  33. -D SX126X_RX_BOOSTED_GAIN=1
  34. -D LORA_TX_POWER=22
  35. -D ADVERT_NAME='"Tenstar C3 Repeater"'
  36. -D ADVERT_LAT=0.0
  37. -D ADVERT_LON=0.0
  38. -D ADMIN_PASSWORD='"password"'
  39. -D MAX_NEIGHBOURS=50
  40. ; -D MESH_PACKET_LOGGING=1
  41. ; -D MESH_DEBUG=1
  42. lib_deps =
  43. ${Tenstar_esp32_C3.lib_deps}
  44. ${esp32_ota.lib_deps}
  45. ; [env:Tenstar_C3_sx1262_repeater_bridge_rs232]
  46. ; extends = Tenstar_esp32_C3
  47. ; build_src_filter = ${Tenstar_esp32_C3.build_src_filter}
  48. ; +<helpers/bridges/RS232Bridge.cpp>
  49. ; +<../examples/simple_repeater/*.cpp>
  50. ; build_flags =
  51. ; ${Tenstar_esp32_C3.build_flags}
  52. ; -D RADIO_CLASS=CustomSX1262
  53. ; -D WRAPPER_CLASS=CustomSX1262Wrapper
  54. ; -D SX126X_RX_BOOSTED_GAIN=1
  55. ; -D LORA_TX_POWER=22
  56. ; -D ADVERT_NAME='"RS232 Bridge"'
  57. ; -D ADVERT_LAT=0.0
  58. ; -D ADVERT_LON=0.0
  59. ; -D ADMIN_PASSWORD='"password"'
  60. ; -D MAX_NEIGHBOURS=50
  61. ; -D WITH_RS232_BRIDGE=Serial2
  62. ; -D WITH_RS232_BRIDGE_RX=5
  63. ; -D WITH_RS232_BRIDGE_TX=6
  64. ; -D BRIDGE_DEBUG=1
  65. ; ; -D MESH_PACKET_LOGGING=1
  66. ; ; -D MESH_DEBUG=1
  67. ; lib_deps =
  68. ; ${Tenstar_esp32_C3.lib_deps}
  69. ; ${esp32_ota.lib_deps}
  70. [env:Tenstar_C3_sx1262_repeater_bridge_espnow]
  71. extends = Tenstar_esp32_C3
  72. build_src_filter = ${Tenstar_esp32_C3.build_src_filter}
  73. +<helpers/bridges/ESPNowBridge.cpp>
  74. +<../examples/simple_repeater/*.cpp>
  75. build_flags =
  76. ${Tenstar_esp32_C3.build_flags}
  77. -D RADIO_CLASS=CustomSX1262
  78. -D WRAPPER_CLASS=CustomSX1262Wrapper
  79. -D SX126X_RX_BOOSTED_GAIN=1
  80. -D LORA_TX_POWER=22
  81. -D ADVERT_NAME='"ESPNow Bridge"'
  82. -D ADVERT_LAT=0.0
  83. -D ADVERT_LON=0.0
  84. -D ADMIN_PASSWORD='"password"'
  85. -D MAX_NEIGHBOURS=50
  86. -D WITH_ESPNOW_BRIDGE=1
  87. ; -D BRIDGE_DEBUG=1
  88. ; -D MESH_PACKET_LOGGING=1
  89. ; -D MESH_DEBUG=1
  90. lib_deps =
  91. ${Tenstar_esp32_C3.lib_deps}
  92. ${esp32_ota.lib_deps}
  93. [env:Tenstar_C3_sx1268_repeater]
  94. extends = Tenstar_esp32_C3
  95. build_src_filter = ${Tenstar_esp32_C3.build_src_filter}
  96. +<../examples/simple_repeater/*.cpp>
  97. build_flags =
  98. ${Tenstar_esp32_C3.build_flags}
  99. -D RADIO_CLASS=CustomSX1268
  100. -D WRAPPER_CLASS=CustomSX1268Wrapper
  101. -D LORA_TX_POWER=22
  102. -D ADVERT_NAME='"Tenstar C3 Repeater"'
  103. -D ADVERT_LAT=0.0
  104. -D ADVERT_LON=0.0
  105. -D ADMIN_PASSWORD='"password"'
  106. -D MAX_NEIGHBOURS=50
  107. ; -D MESH_PACKET_LOGGING=1
  108. ; -D MESH_DEBUG=1
  109. lib_deps =
  110. ${Tenstar_esp32_C3.lib_deps}
  111. ${esp32_ota.lib_deps}
  112. ; [env:Tenstar_C3_sx1268_repeater_bridge_rs232]
  113. ; extends = Tenstar_esp32_C3
  114. ; build_src_filter = ${Tenstar_esp32_C3.build_src_filter}
  115. ; +<helpers/bridges/RS232Bridge.cpp>
  116. ; +<../examples/simple_repeater/*.cpp>
  117. ; build_flags =
  118. ; ${Tenstar_esp32_C3.build_flags}
  119. ; -D RADIO_CLASS=CustomSX1268
  120. ; -D WRAPPER_CLASS=CustomSX1268Wrapper
  121. ; -D LORA_TX_POWER=22
  122. ; -D ADVERT_NAME='"RS232 Bridge"'
  123. ; -D ADVERT_LAT=0.0
  124. ; -D ADVERT_LON=0.0
  125. ; -D ADMIN_PASSWORD='"password"'
  126. ; -D MAX_NEIGHBOURS=50
  127. ; -D WITH_RS232_BRIDGE=Serial2
  128. ; -D WITH_RS232_BRIDGE_RX=5
  129. ; -D WITH_RS232_BRIDGE_TX=6
  130. ; -D BRIDGE_DEBUG=1
  131. ; ; -D MESH_PACKET_LOGGING=1
  132. ; ; -D MESH_DEBUG=1
  133. ; lib_deps =
  134. ; ${Tenstar_esp32_C3.lib_deps}
  135. ; ${esp32_ota.lib_deps}
  136. [env:Tenstar_C3_sx1268_repeater_bridge_espnow]
  137. extends = Tenstar_esp32_C3
  138. build_src_filter = ${Tenstar_esp32_C3.build_src_filter}
  139. +<helpers/bridges/ESPNowBridge.cpp>
  140. +<../examples/simple_repeater/*.cpp>
  141. build_flags =
  142. ${Tenstar_esp32_C3.build_flags}
  143. -D RADIO_CLASS=CustomSX1268
  144. -D WRAPPER_CLASS=CustomSX1268Wrapper
  145. -D LORA_TX_POWER=22
  146. -D ADVERT_NAME='"ESPNow Bridge"'
  147. -D ADVERT_LAT=0.0
  148. -D ADVERT_LON=0.0
  149. -D ADMIN_PASSWORD='"password"'
  150. -D MAX_NEIGHBOURS=50
  151. -D WITH_ESPNOW_BRIDGE=1
  152. ; -D BRIDGE_DEBUG=1
  153. ; -D MESH_PACKET_LOGGING=1
  154. ; -D MESH_DEBUG=1
  155. lib_deps =
  156. ${Tenstar_esp32_C3.lib_deps}
  157. ${esp32_ota.lib_deps}