11 lines
180 B
Bash
Executable File
11 lines
180 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if ls /dev/ttyACM* &>/dev/null; then
|
|
dev=$(ls /dev/ttyACM*)
|
|
echo "connecting to ${dev}"
|
|
screen "${dev}" 115200
|
|
else
|
|
echo "ACM device not found :("
|
|
fi
|
|
|