1746846606

This commit is contained in:
2025-05-09 21:10:06 -06:00
parent 87e43a5f43
commit 2c56898923
8 changed files with 62 additions and 28 deletions
+8 -1
View File
@@ -1,6 +1,13 @@
function getTargets() {
tmpFile='/tmp/targets.tmp'
idf.py --list-targets > "$tmpFile"
tr '\n' ' ' < "$tmpFile"
rm "$tmpFile"
}
function subprocess() {
echo -e "\nChanging ESPTARGET\n"
echo -e "Set esp target (one of esp32, esp32s2, esp32c3, esp32s3, esp32c2, esp32c6, esp32h2, esp32p4, esp32c5, esp32c61, or linux)"
echo -e "Set esp target (one of $(getTargets))"
read esp
eval "$1=$esp"
return 0
Regular → Executable
+2 -2
View File
@@ -1,4 +1,4 @@
#!/bin/bash
echo -e "\nErasing flash on $ESPPORT\n"
idf.py erase-flash
echo -e "\nAll done :3\n"
esptool.py --port $ESPPORT --baud $ESPBAUD --chip $ESPTARGET erase_flash
echo -e "\nAll done :3\n"