diff options
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 |