1746846606
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
9-rc-11
|
||||||
|
created CHANGELOG.txt
|
||||||
|
fixed erase-flash
|
||||||
|
changeesp and add-to-export.txt now dynamically pull targets from idf.py --list-targets
|
||||||
@@ -5,6 +5,13 @@
|
|||||||
# begin esp-idf stuffss I made ################
|
# begin esp-idf stuffss I made ################
|
||||||
###############################################
|
###############################################
|
||||||
|
|
||||||
|
function getTargets() {
|
||||||
|
tmpFile='/tmp/targets.tmp'
|
||||||
|
idf.py --list-targets > "$tmpFile"
|
||||||
|
tr '\n' ' ' < "$tmpFile"
|
||||||
|
rm "$tmpFile"
|
||||||
|
}
|
||||||
|
|
||||||
echo -e "\n=======CUSTOM=======\n"
|
echo -e "\n=======CUSTOM=======\n"
|
||||||
|
|
||||||
versionData=versionDataTAG
|
versionData=versionDataTAG
|
||||||
@@ -32,7 +39,7 @@ echo -e "\nEnter TTY Number You'd Like:"
|
|||||||
read tty
|
read tty
|
||||||
ttyselect=$devarr[(($tty+1))]
|
ttyselect=$devarr[(($tty+1))]
|
||||||
|
|
||||||
echo -e "Set esp target:\n\tOne of: esp32, esp32s2, esp32c3, esp32s3, esp32c2, esp32c6, esp32h2, esp32p4, esp32c5, esp32c61, or linux"
|
echo -e "Set esp target:\n\tOne of: $(getTargets)"
|
||||||
read esp
|
read esp
|
||||||
|
|
||||||
# echo -e "\nSetting environment variables\n"
|
# echo -e "\nSetting environment variables\n"
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
|
function getTargets() {
|
||||||
|
tmpFile='/tmp/targets.tmp'
|
||||||
|
idf.py --list-targets > "$tmpFile"
|
||||||
|
tr '\n' ' ' < "$tmpFile"
|
||||||
|
rm "$tmpFile"
|
||||||
|
}
|
||||||
|
|
||||||
function subprocess() {
|
function subprocess() {
|
||||||
echo -e "\nChanging ESPTARGET\n"
|
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
|
read esp
|
||||||
eval "$1=$esp"
|
eval "$1=$esp"
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Regular → Executable
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo -e "\nErasing flash on $ESPPORT\n"
|
echo -e "\nErasing flash on $ESPPORT\n"
|
||||||
idf.py erase-flash
|
esptool.py --port $ESPPORT --baud $ESPBAUD --chip $ESPTARGET erase_flash
|
||||||
echo -e "\nAll done :3\n"
|
echo -e "\nAll done :3\n"
|
||||||
+23
-23
@@ -1,28 +1,28 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
function subprocess() {
|
# function subprocess() {
|
||||||
echo -e "\nChanging ESPBAUD\n\t1: 9600\n\t2: 115200\n\t3: 230400\n\t4: 460800\n\t5: 1152000\n\t6: 1500000\n\nEnter Selection: "
|
# targets=$(idf.py --list-targets)
|
||||||
read baudRate
|
# out=''
|
||||||
echo -e "\n"
|
#
|
||||||
case $baudRate in
|
# for target in $targets; do
|
||||||
1) selection=9600;;
|
# out="$out $target"
|
||||||
2) selection=115200;;
|
# done
|
||||||
3) selection=230400;;
|
#
|
||||||
4) selection=460800;;
|
# eval "$1=$out"
|
||||||
5) selection=1152000;;
|
#
|
||||||
6) selection=1500000;;
|
# return 0
|
||||||
esac
|
# }
|
||||||
|
|
||||||
eval "$1=$selection"
|
function getTargets() {
|
||||||
return 0
|
tmpFile='/tmp/targets.tmp'
|
||||||
|
idf.py --list-targets > "$tmpFile"
|
||||||
|
tr '\n' ' ' < "$tmpFile"
|
||||||
|
rm "$tmpFile"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ ! -z "$1" ]; then
|
targs=$(getTargets)
|
||||||
ret="$1"
|
|
||||||
else
|
|
||||||
ret=''
|
|
||||||
subprocess ret
|
|
||||||
fi
|
|
||||||
|
|
||||||
export ESPBAUD=$ret
|
echo $targs
|
||||||
echo -e "\nBaudrate set to $ESPBAUD\n"
|
# ret=''
|
||||||
echo -e "\nAll done :3\n"
|
# subprocess ret
|
||||||
|
|
||||||
|
# echo "$ret"
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
9-rc-10
|
9-rc-11
|
||||||
Reference in New Issue
Block a user