mid dev savepoint

This commit is contained in:
2024-10-29 02:36:54 -06:00
parent 31bd4ca351
commit 112cefbe00
14 changed files with 83 additions and 20 deletions
+3
View File
@@ -0,0 +1,3 @@
echo "\nBuilding\n"
idf.py build
echo "\nAll done :3\n"
+31
View File
@@ -0,0 +1,31 @@
#!/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
@@ -0,0 +1,8 @@
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"
+16
View File
@@ -0,0 +1,16 @@
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"
+3
View File
@@ -0,0 +1,3 @@
echo "\nCleaning...\n"
idf.py clean
echo "\nAll done :3\n"
+1
View File
@@ -0,0 +1 @@
idf.py flash monitor
+18
View File
@@ -0,0 +1,18 @@
idf.py fullclean
if [ -d build ]; then
echo "\nDeleting build dir\n"
rm -rf build
fi
if [ -f sdkconfig ]; then
echo "\nDeleting sdkconfig\n"
rm sdkconfig
fi
if [ -f sdkconfig.old ]; then
echo "\nDeleting sdkconfig.old\n"
rm sdkconfig.old
fi
echo "\nAll done :3\n"
+2
View File
@@ -0,0 +1,2 @@
idf.py menuconfig
echo "\nAll done :3\n"
+39
View File
@@ -0,0 +1,39 @@
#!/bin/bash
idf.py fullclean
if [ -f build ]; then
echo -e "\nDeleting build dir\n"
rm -rf build
fi
if [ -f sdkconfig ]; then
echo -e "\nDeleting sdkconfig\n"
rm sdkconfig
fi
if [ -f sdkconfig.old ]; then
echo -e "\nDeleting sdkconfig.old\n"
rm sdkconfig.old
fi
echo -e "\nSetting up project for $ESPTARGET\n"
idf.py set-target $ESPTARGET
echo -e "\nErase flash? y/n"
read wipe
if [ "$wipe" == "y" ]; then
idf.py erase-flash
echo -e "\nFlash wiped\n"
fi
idf.py menuconfig
echo -e "\nBuild now? y/n"
read build
if [ "$build" == "y" ]; then
idf.py build
echo -e "\nBuild complete\n"
fi
echo -e "\nAll done :3\n"
+4
View File
@@ -0,0 +1,4 @@
echo "\nSetting up for $ESPTARGET\n"
idf.py set-target $ESPTARGET
idf.py menuconfig
echo -e "\nAll done :3\n"