diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2024-06-12 02:27:48 +0100 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2024-06-12 02:27:48 +0100 |
| commit | c15ecfa48e45e5475b31d109254d0f35c80470b6 (patch) | |
| tree | 36c97d0c2b34b5a535111de91cab09aefe9a5d77 /bind_serial.sh | |
| parent | 37a2e3605b29822e6bac1bacd54e8f7497bde6a7 (diff) | |
basic functionality done
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 |
