summaryrefslogtreecommitdiff
path: root/bind_serial.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bind_serial.sh')
-rwxr-xr-xbind_serial.sh6
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