diff --git a/extra_script.py b/extra_script.py index 239b850c..dd2231d6 100644 --- a/extra_script.py +++ b/extra_script.py @@ -69,14 +69,14 @@ def post_upload(source, target, env): # device provisioning is incomplete and only currently appropriate for 915MHz T-Beam device_provision(env) firmware_hash(source, env) - # firmware pacakaging is incomplete due to missing console image + # firmware packaging is incomplete due to missing console image #firmware_package(env) elif (platform == "nordicnrf52"): time.sleep(5) # device provisioning is incomplete and only currently appropriate for 915MHz RAK4631 device_provision(env) firmware_hash(source, env) - # firmware pacakaging is incomplete due to missing console image + # firmware packaging is incomplete due to missing console image #firmware_package(env) def post_clean(source, target, env): @@ -120,12 +120,16 @@ def device_provision(env): env.Execute("rnodeconf --product e0 --model e9 --hwrev 1 --rom " + env.subst("$UPLOAD_PORT")) case "lora32v21" | "lora32v21_local": env.Execute("rnodeconf --product b1 --model b9 --hwrev 1 --rom " + env.subst("$UPLOAD_PORT")) + case "heltec32v3": + env.Execute("rnodeconf --product c1 --model c5 --hwrev 1 --rom " + env.subst("$UPLOAD_PORT")) # 433 MHz. For 868-923: --model ca case "heltec32v4" | "heltec32v4_local": env.Execute("rnodeconf --product b1 --model b9 --hwrev 1 --rom " + env.subst("$UPLOAD_PORT")) case "rak4631" | "rak4631_local": env.Execute("rnodeconf --product 10 --model 12 --hwrev 1 --rom " + env.subst("$UPLOAD_PORT")) case "heltec_t114" | "heltec_t114_local": env.Execute("rnodeconf --product c2 --model c7 --hwrev 1 --rom " + env.subst("$UPLOAD_PORT")) + case _: + print("WARN Device hasn't been provisioned! Add rnodeconf call to device_provision() in extra_script.py") def firmware_hash(source, env): # Firmware hash diff --git a/platformio.ini b/platformio.ini index 149ecdaf..29b7c2e6 100644 --- a/platformio.ini +++ b/platformio.ini @@ -498,3 +498,18 @@ lib_deps = https://github.com/liamcottle/esp8266-oled-ssd1306#e16cee124fe26490cb14880c679321ad8ac89c95 adafruit/Adafruit NeoPixel@^1.12.0 microReticulum=symlink://../microReticulum + +[env:heltec_wifi_lora_32_V3_local] +platform = espressif32 +board = heltec_wifi_lora_32_V3 +custom_variant = heltec32v3 +board_build.partitions = no_ota.csv +board_build.filesystem = littlefs +build_flags = + ${env.build_flags} + -DBOARD_MODEL=BOARD_HELTEC32_V3 +lib_deps = + ${env.lib_deps} + XPowersLib@^0.2.1 + microReticulum=symlink://../microReticulum +monitor_filters = esp32_exception_decoder