updatansts
This commit is contained in:
@@ -2,3 +2,5 @@ test-scratch.sh
|
||||
notes.txt
|
||||
*.bak
|
||||
next-*
|
||||
old
|
||||
.vscode
|
||||
@@ -24,8 +24,6 @@ ttyselect=$devarr[(($tty+1))]
|
||||
echo "Set esp target (esp32, esp32s3, esp32c6, esp8266, etc)"
|
||||
read esp
|
||||
|
||||
# ESPPORT="${ttyselect}"
|
||||
|
||||
echo "Setting environment variables"
|
||||
echo "Adding Custom bins to PATH"
|
||||
export PATH="${HOME}/esp/.custom_bin:${PATH}"
|
||||
@@ -42,10 +40,12 @@ echo "Setting alias"
|
||||
alias changeport="source ${binDir}/changeport.sh"
|
||||
alias changebaud="source ${binDir}/changebaud.sh"
|
||||
alias changeesp="source ${binDir}/changeesp.sh"
|
||||
alias flash="idf.py flash"
|
||||
alias monitor="idf.py monitor"
|
||||
alias erase-flash="idf.py erase-flash"
|
||||
alias save-defconfig="cp sdkconfig.defaults sdkconfig.defaults.bak; idf.py save-defconfig"
|
||||
alias flashmonitor="idf.py flash monitor"
|
||||
alias menuconfig="idf.py menuconfig"
|
||||
alias step-flash-monitor="idf.py flash; idf.py monitor"
|
||||
alias clean-build="idf.py clean; idf.py build"
|
||||
alias fullclean-build="idf.py fullclean; idf.py build"
|
||||
|
||||
echo "Changing dir to ${HOME}/esp"
|
||||
cd "${HOME}/esp"
|
||||
|
||||
@@ -13,7 +13,7 @@ startTime=$(date '+%s')
|
||||
# crontab -e
|
||||
# 0 8 * * * bash $HOME/esp/esp-install-custom/cron-reinstall-esp-idf.sh
|
||||
|
||||
cronVers=55-dev.1 # version of this script
|
||||
cronVers=55-dev.2 # version of this script
|
||||
myUser=princesspi
|
||||
test=$1
|
||||
|
||||
|
||||
+3
-2
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
@@ -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"
|
||||
@@ -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"
|
||||
@@ -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"
|
||||
@@ -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
@@ -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"
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
echo -e "\nErasing flash on ${ESPPORT}\n"
|
||||
idf.py erase-flash
|
||||
echo -e "\nAll done :3\n"
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
echo -e "\nFlashing an ${ESPTARGET} on ${ESPPORT}\n"
|
||||
idf.py flash
|
||||
echo -e "\nAll done :3\n"
|
||||
@@ -1 +0,0 @@
|
||||
idf.py flash monitor
|
||||
+13
-2
@@ -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"
|
||||
@@ -1,2 +0,0 @@
|
||||
idf.py menuconfig
|
||||
echo "\nAll done :3\n"
|
||||
@@ -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"
|
||||
|
||||
@@ -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
@@ -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"
|
||||
@@ -0,0 +1 @@
|
||||
55-dev.2
|
||||
Reference in New Issue
Block a user