diff options
author | Kai Stevenson <kai@kaistevenson.com> | 2024-06-12 02:36:19 +0100 |
---|---|---|
committer | Kai Stevenson <kai@kaistevenson.com> | 2024-06-12 02:36:19 +0100 |
commit | e2a8307c8e7f1705ab19b5827cc1088fbd4aa025 (patch) | |
tree | 2fe36c24593dbe36080da1b1d92a924bc310ff82 /send_command.sh | |
parent | c15ecfa48e45e5475b31d109254d0f35c80470b6 (diff) |
util to send single command
Diffstat (limited to 'send_command.sh')
-rwxr-xr-x | send_command.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |