summaryrefslogtreecommitdiff
path: root/upload.sh
blob: 0dee8c4c8a171ec342c881d9dab58bcfe5dd607a (plain)
1
2
3
4
5
6
7
8
9
BOARD="arduino:avr:uno"
PORT=$(arduino-cli board list | grep dev | grep -o '^\S*')
if [ -z $PORT ];
then
	return "Failed to find board"
fi
arduino-cli compile -b $BOARD
arduino-cli upload -p $PORT -b $BOARD
arduino-cli monitor -p $PORT