initial commit

This commit is contained in:
2024-10-15 01:37:33 -06:00
commit 0f21b03a1f
8 changed files with 134 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
###############################################
# begin esp-idf stuffss I made ################
###############################################
echo "\n=======CUSTOM=======\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))]
ESPPORT="$ttyselect"
echo "Changing dir to ~/esp"
cd ~/esp
echo "Setting environment variables"
echo "ESPPORT = $ESPPORT"
export ESPPORT
export ESPBAUD=921600
echo "ESPBAUD = $ESPBAUD"
echo "Adding Custom bins to PATH:"
export PATH=~/esp/.custom_bin:$PATH
echo "Set esp target (esp32, esp32s3, esp32c6, esp8266, etc)"
read $esp
export ESPTARGET=$esp
echo "ESPTARGET = $ESPTARGET"
echo "All done :3 Enjoy your esp-idf environment"
###############################################
# end esp-idf stuffss I made ##################
###############################################