[Heltec_tower_v2] extends = nrf52_base board = heltec_tower_v2 board_build.ldscript = boards/nrf52840_s140_v6.ld build_flags = ${nrf52_base.build_flags} -D ENV_INCLUDE_GPS=1 -I lib/nrf52/s140_nrf52_6.1.1_API/include -I lib/nrf52/s140_nrf52_6.1.1_API/include/nrf52 -I variants/heltec_tower_v2 -D HELTEC_TOWER_V2 -D MOTA_HW_ID='"Heltec_tower_v2"' -D NRF52_POWER_MANAGEMENT -D RADIO_CLASS=CustomSX1262 -D WRAPPER_CLASS=CustomSX1262Wrapper -D LORA_TX_POWER=22 ; Default to maximum SX1262 drive -D MAX_LORA_TX_POWER=22 ; Max SX1262 output -> ~29dBm at antenna -D SX126X_CURRENT_LIMIT=140 -D SX126X_RX_BOOSTED_GAIN=1 build_src_filter = ${nrf52_base.build_src_filter} + + +<../variants/heltec_tower_v2> lib_deps = ${nrf52_base.lib_deps} stevemarple/MicroNMEA @ ^2.0.6 debug_tool = jlink upload_protocol = nrfutil [env:Heltec_tower_v2_repeater] extends = Heltec_tower_v2 extra_scripts = ${nrf52_lora_ota.extra_scripts} build_src_filter = ${Heltec_tower_v2.build_src_filter} + +<../examples/simple_repeater> build_flags = ${Heltec_tower_v2.build_flags} -D ADVERT_NAME='"Heltec_Tower_V2 Repeater"' -D ADVERT_LAT=0.0 -D ADVERT_LON=0.0 -D ADMIN_PASSWORD='"password"' -D MAX_NEIGHBOURS=50 -D ENABLE_OTA=1 -D OTA_FLASH_STORE=1 -D OTA_FOLDER_SERIAL ; -D MESH_PACKET_LOGGING=1 ; -D MESH_DEBUG=1 ; MeshTower V2 self-update target using the onboard microSD socket as the ; primary LoRa-OTA store. Requires the matching SD-aware OTAFIX bootloader. ; With no usable card, the combined OTAFIX marker permits internal-flash ; application deltas. SD retains full images and signed bootloader packages. ; The exact SD repeater env also accepts manually confirmed signed bootloader ; packages when OTAFIX advertises the matching SD self-update profile. [Heltec_tower_v2_sdcard] extends = Heltec_tower_v2 board_build.ldscript = boards/nrf52840_s140_v6_sd_ota.ld build_flags = ${Heltec_tower_v2.build_flags} -D HELTEC_TOWER_V2_SDCARD=1 lib_deps = ${Heltec_tower_v2.lib_deps} ; SdFat 2.3.1 plus the tested full-exFAT mount fix from upstream beta. https://github.com/greiman/SdFat-beta.git#a249cfa121e25a96ee14d8813abf01755f1f6a25 [env:Heltec_tower_v2_sdcard_repeater_lora_ota_no_external_sensors] extends = Heltec_tower_v2_sdcard extra_scripts = ${nrf52_lora_ota.extra_scripts} build_src_filter = ${Heltec_tower_v2_sdcard.build_src_filter} + +<../examples/simple_repeater> build_flags = ${Heltec_tower_v2_sdcard.build_flags} -D ADVERT_NAME='"Heltec_Tower_V2 SD Repeater"' -D ADVERT_LAT=0.0 -D ADVERT_LON=0.0 -D ADMIN_PASSWORD='"password"' -D MAX_NEIGHBOURS=254 -D ENABLE_OTA=1 -D OTA_SD_STORE=1 -D OTA_FLASH_STORE=1 -D OTA_TOWER_AUTO_STORE=1 -D OTA_SD_BOOTLOADER_UPDATE=1 -D OTA_FOLDER_SERIAL [env:Heltec_tower_v2_room_server] extends = Heltec_tower_v2 build_src_filter = ${Heltec_tower_v2.build_src_filter} +<../examples/simple_room_server> build_flags = ${Heltec_tower_v2.build_flags} -D ADVERT_NAME='"Heltec_Tower_V2 Room"' -D ADVERT_LAT=0.0 -D ADVERT_LON=0.0 -D ADMIN_PASSWORD='"password"' -D ROOM_PASSWORD='"hello"' ; -D MESH_PACKET_LOGGING=1 ; -D MESH_DEBUG=1 [env:Heltec_tower_v2_companion_radio_ble] extends = Heltec_tower_v2 board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld board_upload.maximum_size = 712704 build_flags = ${Heltec_tower_v2.build_flags} -I examples/companion_radio/ui-new -D DISPLAY_CLASS=NullDisplayDriver -D MAX_CONTACTS=350 -D MAX_GROUP_CHANNELS=40 -D BLE_PIN_CODE=123456 ; -D BLE_DEBUG_LOGGING=1 -D OFFLINE_QUEUE_SIZE=256 ; -D MESH_PACKET_LOGGING=1 ; -D MESH_DEBUG=1 build_src_filter = ${Heltec_tower_v2.build_src_filter} + + +<../examples/companion_radio/*.cpp> +<../examples/companion_radio/ui-new/*.cpp> lib_deps = ${Heltec_tower_v2.lib_deps} densaugeo/base64 @ ~1.4.0 [env:Heltec_tower_v2_companion_radio_usb] extends = Heltec_tower_v2 board_build.ldscript = boards/nrf52840_s140_v6_extrafs.ld board_upload.maximum_size = 712704 build_flags = ${Heltec_tower_v2.build_flags} -I examples/companion_radio/ui-new -D DISPLAY_CLASS=NullDisplayDriver -D MAX_CONTACTS=350 -D MAX_GROUP_CHANNELS=40 -D ENABLE_USB_INTERFACE ; -D BLE_PIN_CODE=123456 ; -D BLE_DEBUG_LOGGING=1 ; -D MESH_PACKET_LOGGING=1 ; -D MESH_DEBUG=1 build_src_filter = ${Heltec_tower_v2.build_src_filter} + + +<../examples/companion_radio/*.cpp> +<../examples/companion_radio/ui-new/*.cpp> lib_deps = ${Heltec_tower_v2.lib_deps} densaugeo/base64 @ ~1.4.0 [env:Heltec_tower_v2_kiss_modem] extends = Heltec_tower_v2 build_src_filter = ${Heltec_tower_v2.build_src_filter} +<../examples/kiss_modem/>