Created
November 23, 2014 10:15
-
-
Save muka/f961a62b41bf5ad8f064 to your computer and use it in GitHub Desktop.
Start a minicom to show arduino serial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Usage: ./start_minicom 1 ACM # uses /dev/ttyACM1 | |
#Start a minicom to show arduino serial output | |
# first argument to set the proper /dev/tty index | |
# second argument to set the name of /dev/tty index | |
Didx="0" | |
Dtype="USB" | |
if [ ! -z "$1" ] | |
then | |
Didx="$1" | |
fi | |
if [ ! -z "$2" ] | |
then | |
Dtype="$2" | |
fi | |
minicom -b 57600 -o -D "/dev/tty$Dtype$Didx" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment