diff options
Diffstat (limited to 'bind_serial.sh')
-rwxr-xr-x | bind_serial.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bind_serial.sh b/bind_serial.sh new file mode 100755 index 0000000..cc3e5c1 --- /dev/null +++ b/bind_serial.sh @@ -0,0 +1,6 @@ +PORT=$(arduino-cli board list | grep dev | grep -o '^\S*') +if [ -z $PORT ]; +then + return "Failed to find board" +fi +arduino-cli monitor -p $PORT |