aboutsummaryrefslogtreecommitdiff
path: root/Arduino/bin/load.sh
diff options
context:
space:
mode:
authorDonald Delmar Davis <don@suspectdevices.com>2017-10-20 10:46:30 -0700
committerDonald Delmar Davis <don@suspectdevices.com>2017-10-20 10:46:30 -0700
commit261ac02efc8361ac1e55d9be72cfab1c8ea55237 (patch)
tree4fbe0b23659cbd7c5f50c9e10f65d0441e6fee7c /Arduino/bin/load.sh
Let's do this
Diffstat (limited to 'Arduino/bin/load.sh')
-rwxr-xr-xArduino/bin/load.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/Arduino/bin/load.sh b/Arduino/bin/load.sh
new file mode 100755
index 0000000..0446f55
--- /dev/null
+++ b/Arduino/bin/load.sh
@@ -0,0 +1,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
+