updatansts

This commit is contained in:
2024-11-12 04:31:08 -07:00
parent f8999b2caa
commit cc3b4417d9
19 changed files with 68 additions and 74 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
echo "\nBuilding\n"
#!/bin/bash
echo -e "\nBuilding\n"
idf.py build
echo "\nAll done :3\n"
echo -e "\nAll done :3\n"
-31
View File
@@ -1,31 +0,0 @@
#!/bin/bash
echo -e "\nChanging ESPBAUD\n"
read -p "Select New Baudrate:\n\t1: 9600\n\t2: 115200\n\t3: 230400\n\t4: 460800\n\t5: 1152000\n\t6: 1500000\nDefault: ${ESPBAUD}" baud
baud=${baud:-$ESPBAUD}
echo "Select New Baudrate:\n\t1: 9600\n\t2: 115200\n\t3: 230400\n\t4: 460800\n\t5: 1152000\n\t6: 1500000"
read baud
if [ "${baud}" == 1 ]; then
selection=9600
elif [ "${baud}" == 2 ]; then
selection=115200
elif [ "${baud}" == 3 ]; then
selection=230400
elif [ "${baud}" == 4 ]; then
selection=460800
elif [ "${baud}" == 5 ]; then
selection=1152000
elif [ "${baud}" == 5 ]; then
selection=1152000
elif [ "${baud}" == 6 ]; then
selection=1500000
else
echo "\nBad Selection\n"
return
fi
export ESPBAUD=$selection
echo "\nAll done :3\n"
-8
View File
@@ -1,8 +0,0 @@
echo "\nChanging ESPTARGET\n"
echo "Set esp target (esp32, esp32s3, esp32c6, esp8266, etc)"
read esp
export ESPTARGET="${esp}"
echo "\nESPTARGET set to ${ESPTARGET}\n"
echo "\nall done :3\n"
+1 -1
View File
@@ -12,4 +12,4 @@ subprocess ret
export ESPTARGET="${ret}"
echo "\nESPTARGET set to ${ESPTARGET}\n"
echo "\nall done :3\n"
echo "\nAll done :3\n"
-16
View File
@@ -1,16 +0,0 @@
echo "\nChanging ESPPORT\n"
echo "TTY devices found in dmesg:"
COUNTER=0
devarr=()
for line in $(dmesg | tail -50 | grep -o -E "tty[A-Z]{3}[0-9]{0,2}" | sort -u); do
echo "$COUNTER /dev/$line"
devarr+=("/dev/$line")
COUNTER=$((COUNTER+1))
done
echo "\nEnter TTY Number You'd Like:"
read tty
ttyselect=$devarr[(($tty+1))]
export ESPPORT="${ttyselect}"
echo "\nESPPORT set to ${ESPPORT}\n"
echo "\nall done :3\n"
+1 -1
View File
@@ -24,4 +24,4 @@ subprocess ret
export ESPPORT=$ret
echo "\nESPPORT set to ${ESPPORT}\n"
echo "\nall done :3\n"
echo "\nAll done :3\n"
+3 -2
View File
@@ -1,3 +1,4 @@
echo "\nCleaning...\n"
#!/bin/bash
echo -e "\nCleaning...\n"
idf.py clean
echo "\nAll done :3\n"
echo -e "\nAll done :3\n"
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
echo -e "\nErasing flash on ${ESPPORT}\n"
idf.py erase-flash
echo -e "\nAll done :3\n"
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
echo -e "\nFlashing an ${ESPTARGET} on ${ESPPORT}\n"
idf.py flash
echo -e "\nAll done :3\n"
-1
View File
@@ -1 +0,0 @@
idf.py flash monitor
+13 -2
View File
@@ -1,18 +1,29 @@
#!/bin/bash
echo -e "\nCleaning up Fully\n"
echo -e "\nRunning fullclean\n"
idf.py fullclean
if [ -d build ]; then
echo "\nDeleting build dir\n"
echo -e "\nDeleting build dir\n"
rm -rf build
else
echo -e "\nNo build dir, skipping delete\n"
fi
if [ -f sdkconfig ]; then
echo "\nDeleting sdkconfig\n"
echo -e "\nDeleting sdkconfig\n"
rm sdkconfig
else
echo -e "\nNo sdkconfig, skipping delete\n"
fi
if [ -f sdkconfig.old ]; then
echo "\nDeleting sdkconfig.old\n"
rm sdkconfig.old
else
echo -e "\nNo sdkconfig.old, skipping delete\n"
fi
echo "\nAll done :3\n"
-2
View File
@@ -1,2 +0,0 @@
idf.py menuconfig
echo "\nAll done :3\n"
+11
View File
@@ -1,20 +1,31 @@
#!/bin/bash
echo -e "\nFully Rebuildan~\n"
echo -e "\nRunning fullclean\n"
idf.py fullclean
echo -e "\nRunning manual delete tasks\n"
if [ -f build ]; then
echo -e "\nDeleting build dir\n"
rm -rf build
else
echo -e "\nNo build dir, skipping delete\n"
fi
if [ -f sdkconfig ]; then
echo -e "\nDeleting sdkconfig\n"
rm sdkconfig
else
echo -e "\nNo sdkconfig, skipping delete\n"
fi
if [ -f sdkconfig.old ]; then
echo -e "\nDeleting sdkconfig.old\n"
rm sdkconfig.old
else
echo -e "\nNo sdkconfig.old, skipping delete\n"
fi
echo -e "\nSetting up project for $ESPTARGET\n"
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
echo -e "\nSaving default config\n"
if [-f ./sdkconfig.defaults ]; then
echo -e "backing up sdkconfig.defaults to sdkconfig.defaults.bak"
cp sdkconfig.defaults sdkconfig.defaults.bak
else
echo -e "\nNo sdkconfig.defaults found, skipping backup\n"
fi
echo -e "\nRunning save-defconfig\n"
idf.py save-defconfig
echo -e "\nDefaults saved to sdkconfig.defaults\n"
echo -e "\nAll done :3\n"
+2 -1
View File
@@ -1,4 +1,5 @@
echo "\nSetting up for $ESPTARGET\n"
#!/bin/bash
echo -e "\nSetting up for $ESPTARGET\n"
idf.py set-target $ESPTARGET
idf.py menuconfig
echo -e "\nAll done :3\n"