From e2a8307c8e7f1705ab19b5827cc1088fbd4aa025 Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Wed, 12 Jun 2024 02:36:19 +0100 Subject: util to send single command --- send_command.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 send_command.sh (limited to 'send_command.sh') diff --git a/send_command.sh b/send_command.sh new file mode 100755 index 0000000..aa297d3 --- /dev/null +++ b/send_command.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 +echo "$1\n" > $PORT -- cgit v1.2.3-70-g09d2