This commit is contained in:
2024-10-29 04:16:50 -06:00
parent 112cefbe00
commit 69da723d3c
11 changed files with 70 additions and 75 deletions
Regular → Executable
View File
Regular → Executable
+25 -30
View File
@@ -1,31 +1,26 @@
#!/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 "\nChanging ESPBAUD\n\t1: 9600\n\t2: 115200\n\t3: 230400\n\t4: 460800\n\t5: 1152000\n\t6: 1500000\n"
read -p 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
echo "\n$selection\n"
export ESPBAUD=$selection
echo "\nAll done :3\n"
Regular → Executable
+7 -7
View File
@@ -1,8 +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 "\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"
Regular → Executable
+15 -15
View File
@@ -1,16 +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 "\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"
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File