Skip to content

Instantly share code, notes, and snippets.

@muka
Created November 23, 2014 10:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save muka/f961a62b41bf5ad8f064 to your computer and use it in GitHub Desktop.
Save muka/f961a62b41bf5ad8f064 to your computer and use it in GitHub Desktop.
Start a minicom to show arduino serial
#!/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