From c15ecfa48e45e5475b31d109254d0f35c80470b6 Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Wed, 12 Jun 2024 02:27:48 +0100 Subject: basic functionality done --- bind_serial.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bind_serial.sh (limited to 'bind_serial.sh') 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 -- cgit v1.2.3-70-g09d2