upload script example

This commit is contained in:
Proddy
2022-05-07 17:46:31 +02:00
parent 4f399b51f5
commit b35ab94509

10
scripts/upload_fw.py Normal file
View File

@@ -0,0 +1,10 @@
# for calling dos upload from Window WSL2 Linux, because serial ports are not mapped yet
# example file
Import('env')
from subprocess import call
def upload(source, target, env):
print("bin file: " + str(target[0]))
call(["cmd.exe", "/c", "c:\\Users\\paul\\OneDrive\\Desktop\\ems-esp32.bat"])
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", [upload])