Init commit with many years of arduino sketches and projects. I dont know if the esp8266 includes much, but there are also libraries. I hope they dont have crazy automatic versioning through the Arduino IDE.

This commit is contained in:
2019-05-30 23:41:53 +02:00
parent 2d047634f2
commit 6c84b31f2c
1480 changed files with 198581 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
#!/bin/bash
echo "executing monitor script"
set -- /dev/*usb*
# make sure there's a usb port
echo "$1"
if [ -r "$1" ]; then
# get the list of USB ports
dev_list=(`ls /dev/*usb*`)
# echo them out with their index
counter=0
for filename in "${dev_list[@]}"; do
echo "${counter}. ${filename:5}"
counter=`expr $counter + 1`
done
# ask the user which port they'd like to monitor
echo "Which port would you like to monitor? [enter digit then enter, defaults to zero]:"
read dev_port
# if they didn't supply one, just use zero
if [ -n dev_port ]; then
dev_port=0
fi
# ask them what baud they'd like to use
echo "Enter the baud rate [defaults to 9600]:"
read dev_baud
# if they didn't supply one, just use 9600
if [ -n dev_baud ]; then
dev_baud=9600
fi
# give them a heads up
echo "Monitoring ${dev_list[$dev_port]:5} on ${dev_baud}"
# start monitoring
screen ${dev_list[$dev_port]} ${dev_baud}
else
echo "No USB ports found"
fi