aboutsummaryrefslogtreecommitdiff
path: root/Arduino/bin/load.sh
blob: 0446f55e97d790f93dec185f8784a5aa7caf225c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# load.sh - flash your arduino using a locally installed bosac

# Project Variables
INO_NAME=ems
PROJECT_PATH=/home/pi/ems/Arduino

# Local System variables
PORT=ttyACM0
PACKAGES_PATH=/home/pi/BOSSA/bin
BUILD_PATH=$PROJECT_PATH/build

# Arduino compile tools are here:
BOSSAC_PATH=$PACKAGES_PATH

# load to the feather if possible
#$BOSSAC_PATH/bossac -i -d -U true -i -e -w -v $BUILD_PATH/$INO_NAME.ino.bin -R 
$BOSSAC_PATH/bossac -i -d --port=$PORT -U true -i -e -w -v $BUILD_PATH/$INO_NAME.ino.bin -R