Add the UF2 conversion script to the p.io task menu (#4337)

* Add the UF2 conversion script to the p.io task menu

Update platformio-custom.py to include the UF2 conversion script as a project task. Saves you dropping into the command line every time.

Tested on Windows only...

* Forgot the build target...
pull/4338/head
Nestpebble 2024-07-27 02:14:31 +01:00 zatwierdzone przez GitHub
rodzic 4ee15d8128
commit 8641777bac
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -91,3 +91,12 @@ projenv.Append(
"-DAPP_VERSION_SHORT=" + verObj["short"],
]
)
# Add a custom p.io project task to run the UF2 conversion script.
env.AddCustomTarget(
name="Convert Hex to UF2",
dependencies=None,
actions=["PYTHON .\\bin\\uf2conv.py $BUILD_DIR\$env\\firmware.hex -c -f 0xADA52840 -o $BUILD_DIR\$env\\firmware.uf2"],
title="Convert hex to uf2",
description="Runs the python script to convert an already-built .hex file into .uf2 for copying to a device"
)